Skip to content

Commit

Permalink
fix: expose ultrashow as command
Browse files Browse the repository at this point in the history
  • Loading branch information
SpikeHD committed Nov 9, 2024
1 parent 3cd046c commit fbb44f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
])
Expand Down
1 change: 1 addition & 0 deletions src-tauri/src/util/window_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit fbb44f0

Please sign in to comment.