Thread: Sailfish Tweaks
View Single Post
Community Council | Posts: 4,920 | Thanked: 12,867 times | Joined on May 2012 @ Southerrn Finland
#44
Originally Posted by pichlo View Post
Wow, that's great, thanks!

I suppose a different timeout for positive and negative remorse timers would be too much to ask for, right?

To explain what I mean, most remorse timers are of the kind, "So and so will happen unless you press here." Examples: deleting stuff. This is what I call a "negative" timeout since your action stops something from happening.
The other kind is, "Press here if you want something to happen." Examples: proceed with updates in OpenRepos. This is what I call a "positive" timeout since your action makes something happen.

I would prefer the negative timeout short but the positive one long, but I can understand if that is not possible.
Sure it is possible, there are even more than one way of doing it. Two ways come to mind immediately, however both require patching the system in several places;

The first way is to change the interface of the timer invocation by adding a parameter describing the timer length. Then, in each place in the entire system you need to go and add the timeout parameter there.

The second way is to implement 2 remorse timers of each type, one running quick and one running slow. Then you again go through the whole system and change the positive timeouts to use the long running timer and negative timeout to use the fast running timer.
 

The Following User Says Thank You to juiceme For This Useful Post: