Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@


def shouldBeMultiple(name):
"""Whether window name may have multiple copy.
"""Whether window name may have multiple copies.

Ensure that ["multiple"] exsits in the configuration file. The default value being True.
Ensure that ["multiple"] exists in the configuration file. The default value being True.
"""
userOption = mw.addonManager.getConfig(__name__)
if "multiple" not in userOption:
Expand All @@ -37,7 +37,7 @@ def shouldBeMultiple(name):

def __init__(self, oldDialog=None):
if oldDialog is not None:
DialogManagerMultiple._dialogs = oldDialog._dialogs
DialogManager._dialogs = oldDialog._dialogs
old_init(self)
DialogManager.__init__ = __init__

Expand Down Expand Up @@ -77,7 +77,7 @@ def markClosedMultiple(self):
# markClosed
old_markClosed = DialogManager.markClosed
def markClosed(self, name):
"""Remove the window of windowName from the set of windows. """
"""Remove the window of windowName from the set of windows."""
# If it is a window of kind single, then call super
# Otherwise, use inspect to figure out which is the caller
if shouldBeMultiple(name):
Expand Down