Skip to content

Commit

Permalink
Make the shortcut toggle the window (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
jenskutilek committed May 17, 2024
1 parent 1952a95 commit 4bb1c4c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Favourites.glyphsPlugin/Contents/Resources/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,12 @@ def save_data(self) -> None:

def showWindow_(self, sender) -> None:
"""
Show the window
Show the window, or close it if it is already open.
"""
if self.window is None:
self.window = FavouritesUI(self)
else:
self.window.w.close()

def appActivated_(self, info) -> None:
self.became_active_time = int(time())
Expand Down

0 comments on commit 4bb1c4c

Please sign in to comment.