Skip to content

Commit

Permalink
prevent formatting on currently unsupported OS's
Browse files Browse the repository at this point in the history
  • Loading branch information
krazynez committed Apr 18, 2024
1 parent 451a674 commit 7591670
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions contrib/PC/MagicMemoryCreator/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,15 @@ def refresh():

def fmt_ms():

if ostype.lower() != 'linux':
errWin = tk.Toplevel(m)
errWin.title('Unsupported OS Detected')
errWinLabel = tk.Label(errWin, text='Sorry right now this is experimental and only Linux is supported.\n')
errWinLabel.grid(row=1, column=1)
format_ms['state'] = 'disabled'
format_ms_check.set(0)
return

def fmt():
force_ss = False

Expand Down

0 comments on commit 7591670

Please sign in to comment.