mirror of https://gitlab.com/pamhyr/pamhyr2
ListedSubWindow: Logging minor change.
parent
ef72ff6903
commit
b79fc28a5f
|
|
@ -626,7 +626,6 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
|
||||||
# _translate("MainWindowdow", "Activate this windowdow")
|
# _translate("MainWindowdow", "Activate this windowdow")
|
||||||
# )
|
# )
|
||||||
h = window.hash()
|
h = window.hash()
|
||||||
logger.info(f"Get hash: {h}")
|
|
||||||
fn = lambda_generator(h)
|
fn = lambda_generator(h)
|
||||||
action.triggered.connect(fn)
|
action.triggered.connect(fn)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -43,10 +43,10 @@ class ListedSubWindow(object):
|
||||||
self._update_window_list()
|
self._update_window_list()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
logger.info(
|
logger.debug(
|
||||||
f"Open window: {name}: {self._sub_win_cnt}")
|
f"Open window: {name}: {self._sub_win_cnt}")
|
||||||
except Exception:
|
except Exception:
|
||||||
logger.info(f"Open window: {name}: {self._sub_win_cnt}: X")
|
logger.debug(f"Open window: {name}: {self._sub_win_cnt}: X")
|
||||||
logger.warning(f"Sub window without hash method !")
|
logger.warning(f"Sub window without hash method !")
|
||||||
|
|
||||||
def sub_win_del(self, h):
|
def sub_win_del(self, h):
|
||||||
|
|
@ -59,7 +59,7 @@ class ListedSubWindow(object):
|
||||||
self._sub_win_cnt = len(self._sub_win_list)
|
self._sub_win_cnt = len(self._sub_win_list)
|
||||||
self._update_window_list()
|
self._update_window_list()
|
||||||
|
|
||||||
logger.info(f"Close window: ({h}) {self._sub_win_cnt}")
|
logger.debug(f"Close window: ({h}) {self._sub_win_cnt}")
|
||||||
|
|
||||||
def _sub_win_exists(self, h):
|
def _sub_win_exists(self, h):
|
||||||
res = reduce(
|
res = reduce(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue