Skip to content
This repository was archived by the owner on Feb 8, 2023. It is now read-only.
Closed
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
6 changes: 5 additions & 1 deletion payload/Library/nudge/Resources/nudge
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ def main():
minor_updates_required = False

# Start main logic on major and minor upgrades
if LooseVersion(minimum_os_version_major) > os_version_major:
if LooseVersion(minimum_os_version_major) > os_version:
# This is a major upgrade now and needs the app. We shouldn't
# perform minor updates.
if LOCAL_URL_FOR_UPGRADE:
Expand Down Expand Up @@ -690,6 +690,10 @@ def main():
else:
nudgelog('Timer is set to %s' % str(timer))

# Set last_seen to now, regardless of what it was before
set_pref('last_seen', datetime.utcnow())
last_seen = pref('last_seen')

# Set up our window controller and delegate
nudge.hidden = True
nudge.run()
Expand Down