Optimize the display window when activating the window

This commit is contained in:
zhaoyafan 2025-02-22 22:26:36 +08:00
parent 093bded823
commit c46123c1d4
1 changed files with 2 additions and 1 deletions

View File

@ -1960,7 +1960,7 @@ class MainWindow(QMainWindow):
self.tray_menu.addAction(action)
self.tray_icon.setContextMenu(self.tray_menu)
self.tray_icon.show()
QShortcut(QKeySequence('F5'), self).activated.connect(self.on_debug_reload_external_plugins)
# QShortcut(QKeySequence('F5'), self).activated.connect(self.on_debug_reload_external_plugins)
self.init()
def closeEvent(self, event):
@ -1996,6 +1996,7 @@ class MainWindow(QMainWindow):
def window_show(self):
self.showNormal()
self.activateWindow()
self.window_position_reset()
def window_hide(self):