MCPcopy Create free account
hub / github.com/GCWing/BitFun / wait_for_windows_maximize_before_show

Function wait_for_windows_maximize_before_show

src/apps/desktop/src/theme.rs:91–105  ·  view source on GitHub ↗
(window: &tauri::WebviewWindow)

Source from the content-addressed store, hash-verified

89
90#[cfg(target_os = "windows")]
91fn wait_for_windows_maximize_before_show(window: &tauri::WebviewWindow) -> &'static str {
92 let started_at = Instant::now();
93 let mut logged_error = false;
94
95 loop {
96 match windows_maximize_show_wait_action(
97 read_windows_maximize_state(window, &mut logged_error),
98 started_at.elapsed(),
99 ) {
100 WindowsMaximizeShowWaitAction::Ready => return "ready",
101 WindowsMaximizeShowWaitAction::TimedOut => return "timeout",
102 WindowsMaximizeShowWaitAction::Sleep(duration) => std::thread::sleep(duration),
103 }
104 }
105}
106
107#[cfg(target_os = "windows")]
108async fn wait_for_windows_maximize_before_show_async(

Callers 1

Tested by

no test coverage detected