Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: if the user selects primaryQuitButton, func setDeferralTime should add the duration of the current refreshCycle timer when setting the deferRunUntil time. #548

Closed
bradtchapman opened this issue Feb 23, 2024 · 3 comments

Comments

@bradtchapman
Copy link

func setDeferralTime(deferralTime: Date) {

Please update this function and any relevant functions to take into account the current refreshCycle timers used for initial-, approaching-, and imminentRefreshCycles.

The request here is to allow administrators to guarantee that Nudge will not appear again before the promised refresh interval, whether they ignore the app or if they choose to quit / defer it until later.

@erikng
Copy link
Member

erikng commented Jun 17, 2024

Are there any concerns that the refreshCycles are smaller in seconds than the launchagent interval in seconds? Let's say an admin has set the imminent refreshcycle to less than 30 minutes, but the launch agent is only going to do every 30.
I can see how this is beneficial for the inverse, which is likely why you asked for it, but the inverse issue will then occur.

I've personally always seen primaryQuitButton as the easiest escape hatch, but that it will then rely on your launch agent triggers. If users want more control, they use the other options afforded to them by taking a few seconds out of their day to figure out what's best for them.

I'm worried if I add this, it's just giving people longer times away from updating with even more convenience.

@erikng
Copy link
Member

erikng commented Jun 26, 2024

I spoke with Brad and this concern is not valid for him. This makes the code easier to implement if I ignore this problem, with the caveat that this is opt-in by the admin and they understand this.

@erikng
Copy link
Member

erikng commented Jun 26, 2024

Feature added here bb6dee9

The function you mentioned was not where the logic needed to be added as the primary quit button behaves differently.

@erikng erikng closed this as completed Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants