fn start_poll_timer( window: &AppWindow, app: &Rc<RefCell<App>>, tray_state: Option<TrayState>, ) -> Timer