Skip to content

Commit

Permalink
use mainwindoe approach until EOL Win 10
Browse files Browse the repository at this point in the history
  • Loading branch information
ReimarBauer committed Oct 5, 2024
1 parent c77a75a commit 88a6265
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mslib/msui/linearview.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def __init__(self, parent=None, mainwindow=None, model=None, _id=None, config_se

# Tool opener.
self.cbTools.currentIndexChanged.connect(lambda ind: self.openTool(
index=ind, parent=parent, config_settings=config_settings))
index=ind, parent=mainwindow, config_settings=config_settings))
self.lvoptionbtn.clicked.connect(self.open_settings_dialog)

self.openTool(WMS + 1)
Expand Down
2 changes: 1 addition & 1 deletion mslib/msui/sideview.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def __init__(self, parent=None, mainwindow=None, model=None, _id=None, config_se

# Tool opener.
self.cbTools.currentIndexChanged.connect(lambda ind: self.openTool(
index=ind, parent=parent, config_settings=config_settings))
index=ind, parent=mainwindow, config_settings=config_settings))
self.openTool(WMS + 1)

def __del__(self):
Expand Down

0 comments on commit 88a6265

Please sign in to comment.