From a222718c66d0e1fd34d35f41ea5985a1debd1e1c Mon Sep 17 00:00:00 2001 From: mcgillij Date: Tue, 10 Aug 2021 16:59:10 -0300 Subject: [PATCH] remove check if noita is running --- src/noita_save_manager/save_manager.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/noita_save_manager/save_manager.py b/src/noita_save_manager/save_manager.py index 954a532..59858c0 100644 --- a/src/noita_save_manager/save_manager.py +++ b/src/noita_save_manager/save_manager.py @@ -13,14 +13,14 @@ print = sg.Print -def is_noita_running(): - for process in psutil.process_iter(): - try: - if "noita.exe".lower() in process.name().lower(): - return True - except (psutil.NoSuchProcess, psutil.AccessDenied, psutil.ZombieProcess): - pass - return False +# def is_noita_running(): +# for process in psutil.process_iter(): +# try: +# if "noita.exe".lower() in process.name().lower(): +# return True +# except (psutil.NoSuchProcess, psutil.AccessDenied, psutil.ZombieProcess): +# pass +# return False def find_save_zips(dir_path): @@ -122,10 +122,10 @@ def refresh_save_list(): if event in (sg.WIN_CLOSED, "Exit"): # if user closes window or clicks Exit # exit break - if is_noita_running(): - # Noita must not be running during backup - print("please close noita before using this") - continue + # if is_noita_running(): + # # Noita must not be running during backup + # print("please close noita before using this") + # continue if event == "Select": # restore backup if values["-listbox-"]: