Macro-Deck-App / Macro-Deck

Macro Deck transforms your phone, tablet, or any device equipped with a modern internet browser into an efficient remote macro pad. With this tool, you can execute single or multi-step actions seamlessly with just a single tap.
https://macro-deck.app
Apache License 2.0
960 stars 73 forks source link

Variables not always updating properly on UI & web client #503

Open emerysteele opened 8 months ago

emerysteele commented 8 months ago

Describe the bug Variables are not always updating properly in the editor & web client, even though the variable has changed in the background. Have had multiple times where string variables are updated, but the button text doesn't change to the proper info.

Especially noticeable with the Media Controls plugin & changing songs. It seems like variable update + button update get out of sync? When it glitches with media info, the button text will update when the variable changes, but show old variable data.

Also noticed this happens with variables from other plugins too such as Home Assistant + PiHole

To Reproduce Steps to reproduce the behavior:

  1. Setup Macro Deck Media Controls plugin
  2. Create buttons showing {current_playing_artist} & {current_playing_title} variables
  3. Change songs in media player
  4. Eventually it will get out of sync & show old variable data

Expected behavior Buttons should always show current variable data

Screenshots AIMP-egU29UDsLz-1710661874541

Additional context If button is edited & saved without changing anything, it will update to show current variable info. But can get out of sync again easily.

Tested on versions 2.13.0 & 2.13.1, same result.

Log file 2024-03-17.log

emerysteele commented 7 months ago

Also, the same variable can show two different things on two different pages when one doesn't update properly. Macro_Deck_WebView_zp2zaFg8WI Macro_Deck_WebView_Y9L5uq03fe