From b2021aeaab4c9658a6723369b8d32f2769848862 Mon Sep 17 00:00:00 2001 From: misygauziya Date: Sun, 20 Aug 2023 09:00:56 +0900 Subject: [PATCH] =?UTF-8?q?[bugfix]=20=E3=82=BD=E3=83=95=E3=83=88=E3=82=A6?= =?UTF-8?q?=E3=82=A7=E3=82=A2=E3=81=AE=E6=9B=B4=E6=96=B0=E3=83=81=E3=82=A7?= =?UTF-8?q?=E3=83=83=E3=82=AF=E5=87=A6=E7=90=86=E3=81=8C=E5=88=86=E9=9B=A2?= =?UTF-8?q?=E3=81=95=E3=82=8C=E3=81=A6=E3=81=84=E3=81=AA=E3=81=8B=E3=81=A3?= =?UTF-8?q?=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VRCT.py | 5 ++++- model.py | 8 +++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/VRCT.py b/VRCT.py index 565c4bdd..ff7e41c8 100644 --- a/VRCT.py +++ b/VRCT.py @@ -62,7 +62,10 @@ class App(CTk): model.addKeywords() # check OSC started - model.oscCheck() + model.checkOSCStarted() + + # check Software Updated + model.checkSoftwareUpdated() def button_config_callback(self): self.foreground_stop() diff --git a/model.py b/model.py index 67f782f4..b61ee831 100644 --- a/model.py +++ b/model.py @@ -112,19 +112,21 @@ class Model: sendMessage(message, config.OSC_IP_ADDRESS, config.OSC_PORT) @staticmethod - def oscCheck(): - def check_osc_receive(address, osc_arguments): + def checkOSCStarted(): + def checkOscReceive(address, osc_arguments): if config.ENABLE_OSC is False: config.ENABLE_OSC = True # start receive osc - th_receive_osc_parameters = Thread(target=receiveOscParameters, args=(check_osc_receive,)) + th_receive_osc_parameters = Thread(target=receiveOscParameters, args=(checkOscReceive,)) th_receive_osc_parameters.daemon = True th_receive_osc_parameters.start() # check osc started sendTestAction() + @staticmethod + def checkSoftwareUpdated(): # check update response = requests_get(config.GITHUB_URL) tag_name = response.json()["tag_name"]