使用停止処理を優先して行うように
This commit is contained in:
parent
b6bbefbcbe
commit
df9100d66f
1 changed files with 18 additions and 13 deletions
|
@ -106,17 +106,6 @@ class App(tkinter.Tk):
|
||||||
|
|
||||||
def handler_close(self):
|
def handler_close(self):
|
||||||
print("停止処理を実行。")
|
print("停止処理を実行。")
|
||||||
if client_config["eraser"] == True:
|
|
||||||
appdata_local = os.path.expandvars("%LOCALAPPDATA%")
|
|
||||||
appdata_roaming = os.path.expandvars("%APPDATA%")
|
|
||||||
epic_del = self.delete_appdata(process_name="EpicGamesLauncher.exe", dir_path=f"{appdata_local}\\EpicGamesLauncher\\Saved")
|
|
||||||
chrome_del = self.delete_appdata(process_name="chrome.exe", dir_path=f"{appdata_local}\\Google\\Chrome\\User Data")
|
|
||||||
discord_del = self.delete_appdata(process_name="discord.exe", dir_path=f"{appdata_roaming}\\discord")
|
|
||||||
steam_del = self.delete_appdata(process_name="steam.exe", dir_path=f"{appdata_local}\\Steam")
|
|
||||||
ea_del = self.delete_appdata(process_name="EADesktop.exe", dir_path=f"{appdata_local}\\Electronic Arts")
|
|
||||||
riot_del = self.delete_appdata(process_name="RiotClientServices.exe", dir_path=f"{appdata_local}\\Riot Games\\Riot Client")
|
|
||||||
else:
|
|
||||||
print("削除処理をスキップ。")
|
|
||||||
stop_url = client_config["auth_host_url"] + "/stop"
|
stop_url = client_config["auth_host_url"] + "/stop"
|
||||||
stop_json = {
|
stop_json = {
|
||||||
"pc_number": int(client_config["pc_number"]),
|
"pc_number": int(client_config["pc_number"]),
|
||||||
|
@ -133,8 +122,24 @@ class App(tkinter.Tk):
|
||||||
print("内部エラーにより停止処理に失敗しました。")
|
print("内部エラーにより停止処理に失敗しました。")
|
||||||
except:
|
except:
|
||||||
print("ネットワークエラーにより停止処理に失敗しました。")
|
print("ネットワークエラーにより停止処理に失敗しました。")
|
||||||
finally:
|
|
||||||
self.destroy()
|
print("データ削除を実行。")
|
||||||
|
try:
|
||||||
|
if client_config["eraser"] == True:
|
||||||
|
appdata_local = os.path.expandvars("%LOCALAPPDATA%")
|
||||||
|
appdata_roaming = os.path.expandvars("%APPDATA%")
|
||||||
|
epic_del = self.delete_appdata(process_name="EpicGamesLauncher.exe", dir_path=f"{appdata_local}\\EpicGamesLauncher\\Saved")
|
||||||
|
chrome_del = self.delete_appdata(process_name="chrome.exe", dir_path=f"{appdata_local}\\Google\\Chrome\\User Data")
|
||||||
|
discord_del = self.delete_appdata(process_name="discord.exe", dir_path=f"{appdata_roaming}\\discord")
|
||||||
|
steam_del = self.delete_appdata(process_name="steam.exe", dir_path=f"{appdata_local}\\Steam")
|
||||||
|
ea_del = self.delete_appdata(process_name="EADesktop.exe", dir_path=f"{appdata_local}\\Electronic Arts")
|
||||||
|
riot_del = self.delete_appdata(process_name="RiotClientServices.exe", dir_path=f"{appdata_local}\\Riot Games\\Riot Client")
|
||||||
|
else:
|
||||||
|
print("削除処理をスキップ。")
|
||||||
|
except:
|
||||||
|
print("データ削除に失敗しました。")
|
||||||
|
|
||||||
|
self.destroy()
|
||||||
|
|
||||||
def icon(self):
|
def icon(self):
|
||||||
self.iconify()
|
self.iconify()
|
||||||
|
|
Loading…
Reference in a new issue