View Single Post
Posts: 1,313 | Thanked: 2,978 times | Joined on Jun 2011 @ Finland
#804
Originally Posted by eccenux View Post
I now have some rules for places and I was wondering how do you restore values? Do you always force restore or do you check if the current value (before restoration) is the same as the one set by the rule?
Restore is forced. The value is stored before the rule becomes active, and that value restored when rule is deactivated. At least for me I often might change for example profile volume temporary - but I'd still want it to restore the previous one when I for example exit an area.

For example:
  • Let's say I have a rule that changes profile to Silent.
  • My setting before the rule sets is Ringing 20%.
  • The rule becomes active (and Silent profile is set).
  • I manually change rule to Ringing 40%.
  • The rule becomes inactive...
So what would happen? Would it be set to Ringing 20% or left on 40%?
It'd be restored to ringing 20%. At least for me I often might change for example profile volume temporary - but I'd still want it to restore the previous one when I for example exit an area.

I was also wondering if you actively sniff (listen) for changes of values or simply check the current value just before restoration. I think the latter would be better.
I understand what you propose might be preferable in some situations. But monitoring those changes would make the code more complex and essentially mix some of the conditions code into actions. So this is not something I will consider unless it becomes more requested feature.

But I'll keep it in mind if there's more requests along that line, this is the first one I've seen.
__________________
My N9/N950 projects: