From fbb44f00350b0669c9fcdeda9fc5b16e4d9b6836 Mon Sep 17 00:00:00 2001 From: SpikeHD <25207995+SpikeHD@users.noreply.github.com> Date: Sat, 9 Nov 2024 14:20:10 -0800 Subject: [PATCH] fix: expose ultrashow as command --- src-tauri/src/main.rs | 1 + src-tauri/src/util/window_helpers.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index b8abd02f..92d7de1b 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -207,6 +207,7 @@ fn main() { // window::blur::remove_effect, window_helpers::remove_top_bar, window_helpers::set_clear_cache, + window_helpers::ultrashow, window_helpers::window_zoom_level, util::color::get_os_accent, ]) diff --git a/src-tauri/src/util/window_helpers.rs b/src-tauri/src/util/window_helpers.rs index e31924ec..063d87c7 100644 --- a/src-tauri/src/util/window_helpers.rs +++ b/src-tauri/src/util/window_helpers.rs @@ -149,6 +149,7 @@ pub fn set_user_agent(win: &tauri::WebviewWindow) { } /// Stupid name but this just ensures the window is visible regardless of being unfocused/minimized/hidden +#[tauri::command] pub fn ultrashow(win: &tauri::WebviewWindow) { win.unminimize().unwrap_or_default(); win.show().unwrap_or_default();