Skip to content

Commit

Permalink
Fix vista crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Taiko2k committed Sep 23, 2023
1 parent 2215a09 commit 002f4a7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions t_modules/t_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,11 @@ def asset_loader(name, mod=False):
musicbrainzngs.set_useragent("TauonMusicBox", n_version, "https://github.com/Taiko2k/TauonMusicBox")

arch = platform.machine()
win_ver = platform.release()
try:
win_ver = int(win_ver)
except:
win_ver = 0


# print(arch)
Expand Down Expand Up @@ -4262,7 +4267,7 @@ def load_prefs():

smtc = False

if msys and int(py_platform.release()) >= 10:
if msys and win_ver >= 10:

#print(sss.info.win.window)
try:
Expand Down Expand Up @@ -9339,7 +9344,7 @@ def stop(self):

tray.start()

if int(py_platform.release()) < 10:
if win_ver < 10:
import keyboard

def key_callback(event):
Expand Down

0 comments on commit 002f4a7

Please sign in to comment.