Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
first
Browse files Browse the repository at this point in the history
  • Loading branch information
ColdWindScholar committed Sep 17, 2023
1 parent 8f1766e commit a9a59bd
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions 小米845免受权9008工具.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,9 @@ def unlock_miacc():

def end():
print('正在关闭进程...')
call('taskkill / im fastboot.exe / f', kz='N')
call('taskkill / im adb.exe / f', kz='N')
for t in [1, 2, 3]:
call('taskkill / im fastboot.exe / f', kz='N')
call('taskkill / im adb.exe / f', kz='N')
root.destroy()


Expand Down Expand Up @@ -199,10 +200,8 @@ def select_folder(self):
self.folder_path.set(path)

def start_running(self):
if self.folder_path.get():
self.number.get().isdigit()
messagebox.showerror('错误',
'ERROR:0*700FFFFF \n 请确保文件夹路径已选择且端口号为数字')
if not self.folder_path.get() or not self.number.get().isdigit():
messagebox.showerror('错误', 'ERROR:0*700FFFFF \n 请确保文件夹路径已选择且端口号为数字')
return None
else:
path = self.folder_path.get()
Expand Down

0 comments on commit a9a59bd

Please sign in to comment.