fix: preserve GPUI lifetime and avoid WASAPI silence warnings
This commit is contained in:
Vendored
+5
@@ -980,6 +980,11 @@ impl App {
|
||||
self.platform.activate(ignoring_other_apps);
|
||||
}
|
||||
|
||||
/// Keep the native loop alive when the last window closes (for tray apps).
|
||||
pub fn set_quit_on_last_window_close(&self, quit: bool) {
|
||||
self.platform.set_quit_on_last_window_close(quit);
|
||||
}
|
||||
|
||||
/// Hide the application at the platform level.
|
||||
pub fn hide(&self) {
|
||||
self.platform.hide();
|
||||
|
||||
Reference in New Issue
Block a user