[bugfix] ソフトウェアの更新チェック処理が分離されていなかった
This commit is contained in:
5
VRCT.py
5
VRCT.py
@@ -62,7 +62,10 @@ class App(CTk):
|
|||||||
model.addKeywords()
|
model.addKeywords()
|
||||||
|
|
||||||
# check OSC started
|
# check OSC started
|
||||||
model.oscCheck()
|
model.checkOSCStarted()
|
||||||
|
|
||||||
|
# check Software Updated
|
||||||
|
model.checkSoftwareUpdated()
|
||||||
|
|
||||||
def button_config_callback(self):
|
def button_config_callback(self):
|
||||||
self.foreground_stop()
|
self.foreground_stop()
|
||||||
|
|||||||
8
model.py
8
model.py
@@ -112,19 +112,21 @@ class Model:
|
|||||||
sendMessage(message, config.OSC_IP_ADDRESS, config.OSC_PORT)
|
sendMessage(message, config.OSC_IP_ADDRESS, config.OSC_PORT)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def oscCheck():
|
def checkOSCStarted():
|
||||||
def check_osc_receive(address, osc_arguments):
|
def checkOscReceive(address, osc_arguments):
|
||||||
if config.ENABLE_OSC is False:
|
if config.ENABLE_OSC is False:
|
||||||
config.ENABLE_OSC = True
|
config.ENABLE_OSC = True
|
||||||
|
|
||||||
# start receive osc
|
# 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.daemon = True
|
||||||
th_receive_osc_parameters.start()
|
th_receive_osc_parameters.start()
|
||||||
|
|
||||||
# check osc started
|
# check osc started
|
||||||
sendTestAction()
|
sendTestAction()
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def checkSoftwareUpdated():
|
||||||
# check update
|
# check update
|
||||||
response = requests_get(config.GITHUB_URL)
|
response = requests_get(config.GITHUB_URL)
|
||||||
tag_name = response.json()["tag_name"]
|
tag_name = response.json()["tag_name"]
|
||||||
|
|||||||
Reference in New Issue
Block a user