fix: preserve GPUI lifetime and avoid WASAPI silence warnings

This commit is contained in:
2026-10-13 18:58:37 +02:00
parent d065ad7775
commit 072a4ab7ca
17 changed files with 470 additions and 188 deletions
+5
View File
@@ -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();