(&self, app: AppHandle, is_main_window: bool)
| 113 | |
| 114 | #[tracing::instrument(level = "debug", skip(self, app, is_main_window))] |
| 115 | pub fn open_window(&self, app: AppHandle, is_main_window: bool) -> Result<()> { |
| 116 | if !is_main_window { |
| 117 | WebviewWindowBuilder::new( |
| 118 | &app, |
| 119 | "settings", |
| 120 | tauri::WebviewUrl::App("/preferenceWindow".into()), |
| 121 | ) |
| 122 | .build()?; |
| 123 | } |
| 124 | |
| 125 | Ok(()) |
| 126 | } |
| 127 | |
| 128 | #[tracing::instrument(level = "debug", skip(self, window))] |
| 129 | pub fn enable_fullscreen(&self, window: Window) -> Result<()> { |