|
@@ -417,7 +417,7 @@ impl<R: Runtime> AppHandle<R> {
|
|
|
}
|
|
|
|
|
|
/// Restarts the app by triggering [`RunEvent::ExitRequested`] with code [`RESTART_EXIT_CODE`] and [`RunEvent::Exit`]..
|
|
|
- pub fn restart(&self) {
|
|
|
+ pub fn restart(&self) -> ! {
|
|
|
if self.runtime_handle.request_exit(RESTART_EXIT_CODE).is_err() {
|
|
|
self.cleanup_before_exit();
|
|
|
}
|