Coder Social home page Coder Social logo

Comments (10)

colanct avatar colanct commented on August 20, 2024 1

Ah, now I understand; thank you.

The confusion is partly because once the switch has been cycled from the default, it is not possible to tell if the action will be toggled or if it will be set to Off, and there is no way to restore the default without starting again (which is probably why the selected action is being removed).

Anyhow, thank you for your help.

from freeshow.

vassbo avatar vassbo commented on August 20, 2024

Could you explain further? I added one "Run action" (with multiple triggers) to a slide, that worked. And I set "Custom activation" on that, and all the actions in the single action were triggered.

from freeshow.

colanct avatar colanct commented on August 20, 2024

My reported issue was probably mainly due to my misunderstanding of enabling, triggering, run action, and toggling of custom actions, which you partly clarified in #636.

Now that I have a better understanding, I've retested using the below custom action, with a Toggle action for it placed on a slide. It functions mostly as expected. While testing, I found:

  1. Toggling actions changes the Enabled status in the defined action in the drawer. So if the action was defined with Enabled deselected, it becomes defined with Enabled set to selected. If the app is closed before the action is toggled for a second time (to revert to its original state), the action is saved with the Enabled state toggled. So, the next time the show is played the sequence is inverted. As I see it, toggling an action should not alter the saved defined action.

  2. Although action 4 (in my example) is effective in toggling the action, so that the action is disabled for subsequent slides, it does not alter the Enabled status of the action. This is confirmed when the action config is viewed in the drawer. When the action is toggled again, it is out of sequence.
    However, when, instead of action 4, a stand-alone toggle action is applied to the following slide, the Enabled status is changed, as evidenced in the app drawer.

  3. After action 4 in my custom action executed, none of the timers can be restarted. In the drawer, they appear to be reset, show as playing, but do not decrement. The app has to be closed and reopened to recover. This does not happen when a stand-alone toggle action is applied to the following slide.

  4. Custom actions dragged and dropped from the drawer do not function or display correctly.

  5. Adding the action Stop active timers to my custom action, appears to do nothing.

image

from freeshow.

vassbo avatar vassbo commented on August 20, 2024
  1. Users can manually enable/disable actions so it makes sense that this will be changed. But you can set the toggle state to on/off (using the checkbox) to ensure it's set to what you need it to be (in your screenshot it will always be set to "on").
  2. You need to choose an action to be toggled using the dropdown (this can't be the same action that triggers it!
  3. This is because you have not set an action to toggle, but I will fix this "freeze" error!
  4. I'll fix this behaviour.
  5. Same reason as point 3.

from freeshow.

colanct avatar colanct commented on August 20, 2024

Thank you.

I'm still finding the UI confusing when adding a Toggle action to a custom action. In particular, the behaviour of the toggle switch and the removal of the selected action when the switch is enabled.

Please clarify the intended behaviour when:

  1. Adding a Toggle action without selecting an action to toggle. I've assumed the toggle applies to the action being edited, as it can be saved without defining the action.
  2. The switch is enabled and the selected action to toggle is removed.

from freeshow.

vassbo avatar vassbo commented on August 20, 2024

You should always select an action to toggle when choosing "Toggle action", but it's set to "-" by default so no action is accidentally toggled. If you don't select any action, or the selected action does no longer exist then it will do nothing! (I will fix it so it does not freeze in this case)

from freeshow.

colanct avatar colanct commented on August 20, 2024

Thank you, That helps.

However, I still don't understand the function of the switch, especially as it removes the selected action when it is enabled after selecting an action to be toggled.

The switch has an initial/default on/selected state before selecting an action to be toggled. This implies something is active, and is then deactivated once an action to be toggled is selected, which seems to not be the case.

from freeshow.

vassbo avatar vassbo commented on August 20, 2024

I see, this is a bug. Will fix this as well.

from freeshow.

colanct avatar colanct commented on August 20, 2024

Ah, good; thank you.

Then, is my understanding of the intended function of the switch now correct?

  • When Off/deselected: selected function will be toggled (Enabled status will be inverted).
  • When On/selected: selected function will be enabled, irrespective of its present state.

If so, consider amending the text "Action will toggle if checkbox is unchanged" to be dependant on the state of the switch, and keep it visible. For example:
When switch is off/unselected/default display "Action will be toggled"
When switch is on/selected: "Action will be enabled"

from freeshow.

vassbo avatar vassbo commented on August 20, 2024

If the checkbox is unchanged it will toggle the value (as the text explains), but if it's set to on OR off again (deselected), the action will be set to on OR off accordingly!

from freeshow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.