Fix ManagedWindow _present method name (incorrectly named __present)
This commit is contained in:
parent
04b7888817
commit
efcdcd7434
@ -266,7 +266,7 @@ class GrampsWindowManager:
|
|||||||
if not isinstance(item, list):
|
if not isinstance(item, list):
|
||||||
def func(obj):
|
def func(obj):
|
||||||
if item.window_id and self.id2item.get(item.window_id):
|
if item.window_id and self.id2item.get(item.window_id):
|
||||||
self.id2item[item.window_id].__present()
|
self.id2item[item.window_id]._present()
|
||||||
else:
|
else:
|
||||||
def func(obj):
|
def func(obj):
|
||||||
pass
|
pass
|
||||||
@ -418,7 +418,7 @@ class ManagedWindow:
|
|||||||
self.other_modal_window = None
|
self.other_modal_window = None
|
||||||
|
|
||||||
if uistate and uistate.gwm.get_item_from_id(window_key):
|
if uistate and uistate.gwm.get_item_from_id(window_key):
|
||||||
uistate.gwm.get_item_from_id(window_key).__present()
|
uistate.gwm.get_item_from_id(window_key)._present()
|
||||||
raise WindowActiveError('This window is already active')
|
raise WindowActiveError('This window is already active')
|
||||||
else:
|
else:
|
||||||
self.window_id = window_key
|
self.window_id = window_key
|
||||||
@ -568,7 +568,7 @@ class ManagedWindow:
|
|||||||
self.other_modal_window.set_modal(True)
|
self.other_modal_window.set_modal(True)
|
||||||
self.parent_window.present()
|
self.parent_window.present()
|
||||||
|
|
||||||
def __present(self):
|
def _present(self):
|
||||||
"""
|
"""
|
||||||
Present window (unroll/unminimize/bring to top).
|
Present window (unroll/unminimize/bring to top).
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user