Added close behaviour option for specific window (#3754)

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
This commit is contained in:
KlemenandJonathan Kelley authored and GitHub committed 2025-07-01 18:59:44 -07:00
1 parent c3c7e5f705
commit 9573af115a
10 files changed
+172 -28

No files matched your search

+4
View File
@@ -1,6 +1,8 @@
use serde::{Deserialize, Serialize};
use tao::window::WindowId;
use crate::WindowCloseBehaviour;
#[non_exhaustive]
#[derive(Debug, Clone)]
pub enum UserWindowEvent {
@@ -17,6 +19,8 @@ pub enum UserWindowEvent {
#[cfg(any(target_os = "windows", target_os = "linux", target_os = "macos"))]
TrayMenuEvent(tray_icon::menu::MenuEvent),
CloseBehaviour(WindowId, Option<WindowCloseBehaviour>),
/// Poll the virtualdom
Poll(WindowId),