diff --git a/config.py b/config.py index e47096e..d4b22db 100644 --- a/config.py +++ b/config.py @@ -24,7 +24,6 @@ def __init__(self) -> None: """ Config initialization """ - print('Config initialization started.') self.config_file = 'servers.json' self.config_path = os.getcwd() + '\\' + self.config_file diff --git a/gui.py b/gui.py index b6020ef..f499f20 100644 --- a/gui.py +++ b/gui.py @@ -15,9 +15,9 @@ def __init__(self) -> None: """ Window initialization """ - self.cfg = config.Config() - self.__version__ = '1.0.1.3' print('Window initialization started.') + self.cfg = config.Config() + self.__version__ = '1.0.1.4' def callback(self, sender, data): """ @@ -79,7 +79,7 @@ def update(self) -> None: dpg.set_value('ip', self.cfg.get_value(dpg.get_value('servers_list'), 'IP')) dpg.set_value('username', self.cfg.get_value(dpg.get_value('servers_list'), 'username')) dpg.set_value('password', self.cfg.get_value(dpg.get_value('servers_list'), 'password')) - + if self.get_current_version() != self.__version__: dpg.configure_item('b_update', show=True) @@ -192,7 +192,7 @@ def get_current_version(self): Returns: str: current version """ - return requests.get('https://raw.githubusercontent.com/OpsecGuy/Awesome-Server-Manager/main/version').text.replace('\n', '') + return requests.get('https://raw.githubusercontent.com/OpsecGuy/Awesome-Server-Manager/main/version', headers={'Cache-Control': 'no-cache', 'Pragma': 'no-cache'}).text.replace('\n', '') def connect(self) -> None: """