verifica directory e test_conn spostati in service

This commit is contained in:
mac12m99
2021-02-28 20:23:57 +01:00
parent 503fe75d26
commit ec8ab9db35
4 changed files with 12 additions and 14 deletions

View File

@@ -20,22 +20,12 @@ def start():
functions that we want to execute as soon as we open the plugin.
"""
logger.debug()
# config.set_setting('show_once', True)
# Test if all the required directories are created
config.verify_directories_created()
# check if the user has any connection problems
# if it has: it does not enter the addon
# if it has DNS problems start but let in
# if everything is ok: enter the addon
from platformcode.checkhost import test_conn
import threading
threading.Thread(target=test_conn, args=(True, not config.get_setting('resolver_dns'), True, [], [], True)).start()
if not config.dev_mode():
from platformcode import updater
updater.showSavedChangelog()
def run(item=None):
# from core.support import dbg;dbg()
logger.debug()