pub fn notify()
Triggers a global UI update by emitting STATE_CHANGED on the main window and waking the app.
STATE_CHANGED