Skip to content

Commit 4d65180

Browse files
Update viewer.py
Refactor temporary UI notifications to use QStatusBar instead of QMessageBox. Removed auto-closing QMessageBox instances without user interaction and routed all transient feedback through the main window status bar, as recommended.
1 parent f2cf228 commit 4d65180

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

annotation_tool/viewer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ def update_save_export_button_state(self) -> None:
352352

353353

354354
def show_temp_msg(self, title: str, msg: str, duration: int = 1500, **kwargs) -> None:
355-
# status bar 更适合一行文本
355+
# status bar
356356
one_line = " ".join(str(msg).splitlines()).strip()
357357
text = f"{title}{one_line}" if title else one_line
358358
self.statusBar().showMessage(text, duration)

0 commit comments

Comments
 (0)