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
Triggers are only saved 10s after being created #240
Comments
Etienne did that in commit 5185d45 "Fixed issues with some triggers being reactivated at relaunch. So there were some problem with triggers before. But I don't know how You can easily find that out with git blame. Just call up the source On Sun, Apr 24, 2011 at 9:49 AM, pjrobertson
|
Interesting. I still don't understand though, unless it assumes you'd On 24 April 2011 18:14, HenningJ <
|
This has been 'fixed' by reducing the time for triggers to be saved to 2s. writeTriggers and writeTriggersNow in QSTriggerCenter.m are what is important here. |
I still don't understand why there has to be a delay at all. |
Because atm. triggers are saved whenever you click 'another' trigger in the list of your triggers, and when it saves triggers, it saves all of them to file (the manager can't just save one) so it's quite recourse intensive. If you're going about clicking loads of things rapidly QS is going to try to save, save, save, save... |
Ah, ok. So the correct fix for this would be to make the trigger manager smarter, so he can save one trigger at a time and only the one that changed? |
Indeed :) That's why I stuck 'fixed' in inverted commas - I didn't actually 'fix' the On 29 October 2011 09:07, Henning Jungkurth <
|
Check it out:
I found this when looking at Trigger stuff. Check out QSTriggerCenter.m:155
Anybody have any ideas WHY this might be, and if it was included post Alcor, or if Alcor implemented it?
To me, this is kinda stupid, no?!
I haven't testing it when delay is 0.0, because I'm working on some serious trigger stuff at the moment, so don't want to get away from that. Thought I'd document it here though
The text was updated successfully, but these errors were encountered: