Skip to content

Commit

Permalink
Fix: windows.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
KiWi233333 committed Nov 6, 2024
1 parent a8ff867 commit 5e4e4b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src-tauri/src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub fn setup_window(app: &AppHandle) -> tauri::Result<()> {
}

// 构建主窗口和消息窗口
let main_window = main_builder.build()?;
let _main_window = main_builder.build()?;
#[cfg(any(target_os = "windows", target_os = "linux", target_os = "macos"))]
let msgbox_window = msgbox_builder.build()?;

Expand All @@ -66,7 +66,7 @@ pub fn setup_window(app: &AppHandle) -> tauri::Result<()> {
use cocoa::appkit::{NSColor, NSWindow};
use cocoa::base::{id, nil};

let ns_window = _window.ns_window().unwrap() as id;
let ns_window = _main_window.ns_window().unwrap() as id;
unsafe {
let bg_color = NSColor::colorWithRed_green_blue_alpha_(
nil,
Expand Down

0 comments on commit 5e4e4b9

Please sign in to comment.