diff --git a/platformcode/config.py b/platformcode/config.py index 8a725ae9..c1d13fce 100644 --- a/platformcode/config.py +++ b/platformcode/config.py @@ -152,6 +152,7 @@ def enable_disable_autorun(is_enabled): if is_enabled is False: with open(path, append_write) as file: file.write("import xbmc\nxbmc.executebuiltin('XBMC.RunAddon(plugin.video.kod)')") + set_setting('autostart', get_localized_string(707431)) else: file = open(path, "r") old_content = file.read() @@ -159,6 +160,7 @@ def enable_disable_autorun(is_enabled): file.close() with open(path, "w") as file: file.write(new_content) + set_setting('autostart', get_localized_string(707432)) return True def get_all_settings_addon(): diff --git a/resources/settings.xml b/resources/settings.xml index fe19a695..1a86c44c 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -2,7 +2,7 @@ - +