Author Topic: [v1.7.5] "Run an Application" options reset when modifying target  (Read 1683 times)

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4761
  • RTFM
When adding a "Run an Application" action, if the "Window Style" and/or "Advanced" options are changed, most of them will be reset to their defaults as soon as the target field(the one containing the path to the application) is modified(in any way, either using the file picker, pasting, or even typing into the field).

E.G.
Set "Window Style" to "Hidden"
Set "Advanced" to "Wait until the launched application exits before continuing" and enter something into the "Capture STDOUT to a text variable" field, check "Only wait up to "
Check "Exit command if launch has failed or wait time exceeded"
Type into the target field
Now note:
"Window Style" returns to its default "Normal" setting
"Advanced" returns to its default "Do not wait for launched application" setting
"Capture STDOUT to a text variable" retains its value, though is greyed out because its parent option is not selected(meaning the value will be lost if the action is added in this state)
"Only wait up to" is unchecked, and the value is reset to 0
"Exit command if launch has failed or wait time exceeded" is unchecked


If the action is edited after adding it, any changes made before modifying the target field will revert to those already used in the command(E.G. if "Window Style" was saved as "Hidden", and is modified to "Maximized", changing the target field will return it to "Hidden").


It seems the last-used settings are loaded each time the target field is modified, which can lead to changes getting lost, possibly unnoticed as well.


EDIT: Fixed in v1.7.5.8
« Last Edit: May 09, 2019, 05:44:07 PM by Pfeil »

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2826
Re: [v1.7.5] "Run an Application" options reset when modifying target
« Reply #1 on: April 24, 2019, 09:49:01 PM »
Yeah - it should probably not do that o_O


I believe this is situated now.  Thank you for the detailed explanation, too ;)