test: simulate all UI buttons and handle log folder errors

This commit is contained in:
阿白叔 committed 2026-11-11 16:22:14 +08:00
1 parent 42e8719026
commit b86e4e315a
5 files changed
+1796 -1

No files matched your search

+5 -1
View File
@@ -1688,7 +1688,11 @@ class MainWindow(QWidget):
self.busy = False; self._update()
def open_logs(self):
self.data_root.mkdir(parents=True, exist_ok=True); os.startfile(str(self.data_root))
try:
self.data_root.mkdir(parents=True, exist_ok=True)
os.startfile(str(self.data_root))
except Exception as error:
self._display_error(error)
def recover(self):
if not self.recovery_path: return