From 7591670edba20f1eecfee941e7eb677fc5b343c0 Mon Sep 17 00:00:00 2001 From: Brennen Murphy Date: Thu, 18 Apr 2024 16:32:35 -0400 Subject: [PATCH] prevent formatting on currently unsupported OS's --- contrib/PC/MagicMemoryCreator/main.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/contrib/PC/MagicMemoryCreator/main.py b/contrib/PC/MagicMemoryCreator/main.py index b7be1b95..7caee9b6 100755 --- a/contrib/PC/MagicMemoryCreator/main.py +++ b/contrib/PC/MagicMemoryCreator/main.py @@ -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