Skip to content

Commit

Permalink
Fix save button
Browse files Browse the repository at this point in the history
  • Loading branch information
infinitepower18 committed Mar 27, 2024
1 parent 394cd5d commit 77d456a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion installer/installer.iss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "WSA Sideloader"
#define MyAppVersion "1.4.5"
#define MyAppVersion "1.4.6"
#define MyAppPublisher "infinitepower18"
#define MyAppURL "https://github.com/infinitepower18/WSA-Sideloader"
#define MyAppUpdateURL "https://github.com/infinitepower18/WSA-Sideloader/releases/latest"
Expand Down
2 changes: 1 addition & 1 deletion installer/installer_arm64.iss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "WSA Sideloader"
#define MyAppVersion "1.4.5"
#define MyAppVersion "1.4.6"
#define MyAppPublisher "infinitepower18"
#define MyAppURL "https://github.com/infinitepower18/WSA-Sideloader"
#define MyAppUpdateURL "https://github.com/infinitepower18/WSA-Sideloader/releases/latest"
Expand Down
10 changes: 2 additions & 8 deletions sideloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
with open(os.getcwd()+"\\locales\\en.json",encoding='utf-8') as json_file:
strings = json.load(json_file)

version = "1.4.5" # Version number
version = "1.4.6" # Version number
adbRunning = False
startCode = 0
icon = os.getcwd()+"\\icon.ico"
Expand Down Expand Up @@ -300,13 +300,7 @@ def settings(configpath,version,source):
event, values = window.read()
if event == strings["saveButton"]:
window.Close()
if source == "Microsoft Store":
config['Application'] = {'adbAddress':values["-ADDRESS-"],'checkUpdates':"Enabled"}
else:
if values["-CHECKUPDATES-"] == strings["enabled"]:
config['Application'] = {'adbAddress':values["-ADDRESS-"],'checkUpdates':"Enabled"}
else:
config['Application'] = {'adbAddress':values["-ADDRESS-"],'checkUpdates':"Disabled"}
config['Application'] = {'adbAddress':values["-ADDRESS-"],'checkUpdates':"Enabled"}
with open(configpath, 'w') as configfile:
config.write(configfile)
break
Expand Down

0 comments on commit 77d456a

Please sign in to comment.