monitor finestra server come thread
This commit is contained in:
@@ -1876,6 +1876,7 @@ def serverWindow(item, itemlist):
|
|||||||
|
|
||||||
|
|
||||||
if itemlist:
|
if itemlist:
|
||||||
|
def monitor(itemlist):
|
||||||
reopen = False
|
reopen = False
|
||||||
from core import db
|
from core import db
|
||||||
while not xbmc.Monitor().abortRequested():
|
while not xbmc.Monitor().abortRequested():
|
||||||
@@ -1904,3 +1905,5 @@ def serverWindow(item, itemlist):
|
|||||||
run(selection)
|
run(selection)
|
||||||
reopen = True
|
reopen = True
|
||||||
db.close()
|
db.close()
|
||||||
|
import threading
|
||||||
|
threading.Thread(target=monitor, args=[itemlist]).start()
|
||||||
|
|||||||
Reference in New Issue
Block a user