Skip to content

Commit

Permalink
Merge pull request #13 from gorouflex/main
Browse files Browse the repository at this point in the history
idk
  • Loading branch information
gorouflex authored Mar 3, 2024
2 parents ae26f47 + 7e74448 commit e3ad17d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 3 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## [0.1.71]

- Small changes for code structure
## [0.1.7]

- Fix a serious bug about `apply_smu`
Expand Down
10 changes: 4 additions & 6 deletions UXTU4Mac/UXTU4Mac.py
Original file line number Diff line number Diff line change
Expand Up @@ -629,19 +629,18 @@ def updater():
)
logging.info("Do you want to update? (y/n): ")
choice = input("Option: ").lower()
if choice == "y":
if choice == "y":
subprocess.run(["python3", "Assets/SU.py"])
logging.info("Updating...")
logging.info("Update complete. Restarting the application, please close this window...")
command_file_path = os.path.join(os.path.dirname(__file__), 'UXTU4Mac.command')
subprocess.Popen(['open', command_file_path])
raise SystemExit
elif choice == "n":
logging.info("Skipping update...")
raise SystemExit
else:
logging.info("Invalid option.")
raise SystemExit

raise SystemExit

def check_updates():
try:
Expand Down Expand Up @@ -736,8 +735,7 @@ def main():
logging.info("A. About UXTU4Mac")
logging.info("Q. Quit")
choice = input("Option: ").lower()
action = options.get(choice)
if action:
if action := options.get(choice):
action()
else:
logging.info("Invalid Option.")
Expand Down

0 comments on commit e3ad17d

Please sign in to comment.