* fix: app restarting after the user closes when there's a pending update * add logging and fix tauri variable * use state * use atomicbool
* fix: app restarting after the user closes when there's a pending update * add logging and fix tauri variable * use state * use atomicbool