Fix wrong 'is' check.
This commit is contained in:
parent
85ead4273b
commit
d8cd599096
@ -131,7 +131,7 @@ def _get_window_registry(window):
|
|||||||
"""Get the registry of a window."""
|
"""Get the registry of a window."""
|
||||||
if window is None:
|
if window is None:
|
||||||
raise TypeError("window is None with scope window!")
|
raise TypeError("window is None with scope window!")
|
||||||
if window is 'current':
|
if window == 'current':
|
||||||
app = get('app')
|
app = get('app')
|
||||||
win = app.activeWindow()
|
win = app.activeWindow()
|
||||||
if win is None or not hasattr(win, 'win_id'):
|
if win is None or not hasattr(win, 'win_id'):
|
||||||
|
Loading…
Reference in New Issue
Block a user