mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Pamhyr: Chose to close all subwindow at window close.
This commit is contained in:
1 parent
f0f6ad17e2
commit
8109ddf78f
3 files changed
+18
-3
No files matched your search
@@ -342,6 +342,7 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
|
||||
def _do_propagate_update(self):
|
||||
for key in self._propagation_keys:
|
||||
if key == "window_list":
|
||||
logger.debug(f"Update window list")
|
||||
self._do_update_window_list()
|
||||
continue
|
||||
|
||||
@@ -568,9 +569,9 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
|
||||
elif res == QMessageBox.Cancel:
|
||||
return False
|
||||
|
||||
#############
|
||||
# SUBWINDOW #
|
||||
#############
|
||||
#########################
|
||||
# SUB WINDOWS MENU LIST #
|
||||
#########################
|
||||
|
||||
def _activate_window(self, window_hash):
|
||||
self._try_activate_window_for_window(self, window_hash)
|
||||
@@ -629,6 +630,10 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
|
||||
|
||||
menu.addAction(action)
|
||||
|
||||
###############
|
||||
# SUB WINDOWS #
|
||||
###############
|
||||
|
||||
def open_configure(self):
|
||||
"""Open configure window
|
||||
|
||||
|
||||
Reference in new issue
Block a user