Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
jenskutilek committed Mar 19, 2024
1 parent a31c283 commit d1f7dc1
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 @@ -119,7 +119,8 @@ def appDeactivated_(self, info):
session_time = became_inactive_time - self.became_active_time
Glyphs.defaults[libkey % "TimeSession"] += session_time
print(
f"Log session: +{session_time} (total session {Glyphs.defaults[libkey % 'TimeSession']}) seconds"
f"Log session: +{session_time} (total session "
f"{Glyphs.defaults[libkey % 'TimeSession']}) seconds"
)

@objc.python_method
Expand Down Expand Up @@ -183,6 +184,7 @@ def docDeactivated_(self, info):
@objc.python_method
def __del__(self):
if self.hasNotification:
# TODO: Remove notifications
self.hasNotification = False

def logTime_(self, info=None):
Expand Down

0 comments on commit d1f7dc1

Please sign in to comment.