Closed b0bdN closed 2 years ago
Fixed this issue. The problem was that all get parameters returned variables but should be functions. Also replaced setTimeout with await on fetching data.
Hi! Thank you for your time! :) I'm new to JavaScript and the syntax async/await is not something I understand completely.. But your answer and modifications are a great help.
Hi, actually this is my first contribution ever🙂 Hope it was helpful. found by label "good first issue".
When I select the parameter MidnightMode in the settings panel and click on Apply, everything updates correctly. But if I want to change later the value (without closing the app), the
store.getMidnightMode
variable does not change even though the value is updated withstore.setMidnightMode
.See main.js:
Here is an extract from the terminal for the line console.log(midnightMode + ' store.getMidnightMode = ' + store.getMidnightMode):
store.getMidnightMode
stay to0
even though I just updated to1
the first time