Skip to content

Commit

Permalink
If build mac doesn't work I will scream
Browse files Browse the repository at this point in the history
  • Loading branch information
LucFauvel committed Aug 18, 2024
1 parent 4aab255 commit 9cec8f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/desktop/src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pub struct TrayMenu(Mutex<Menu<Wry>>);

#[cfg(target_os = "macos")]
fn apply_macos_specifics(window: &WebviewWindow) {
use tauri::{AppHandle, WebviewWindow, Wry};
use tauri::{AppHandle, Wry};
use tauri_nspanel::ManagerExt;

window.remove_shadow();
Expand All @@ -57,7 +57,7 @@ fn apply_macos_specifics(window: &WebviewWindow) {
if let Some(bundle_id) = bundle_id {
let is_league_of_legends = bundle_id == "com.riotgames.LeagueofLegends.GameClient";

let panel = app_handle.get_panel(MAIN_WINDOW_NAME).unwrap();
let panel = app_handle.get_webview_panel(MAIN_WINDOW_NAME).unwrap();

panel.set_level(if is_league_of_legends {
constants::HIGHER_LEVEL_THAN_LEAGUE
Expand Down

0 comments on commit 9cec8f4

Please sign in to comment.