From e1ac060c061feaa9db184c44f19a2a6ba84d1fa7 Mon Sep 17 00:00:00 2001 From: MicroBlock <66859419+MicroCBer@users.noreply.github.com> Date: Sat, 10 Aug 2024 00:41:46 +0800 Subject: [PATCH] Update main.rs --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index fe47104..98a644f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -14,7 +14,7 @@ use std::{ path::{Path, PathBuf}, rc::Rc, }; -use winapi::um::winuser::ShowWindow; + extern crate msgbox; @@ -781,6 +781,7 @@ impl Handler { { #[cfg(not(debug_assertions))] { + use winapi::um::winuser::ShowWindow; use winapi::um::winuser::{ShowWindow, SW_SHOW}; unsafe { ShowWindow(winapi::um::wincon::GetConsoleWindow(), SW_SHOW); @@ -840,6 +841,7 @@ fn main() { // windows only #[cfg(windows)] { + use winapi::um::winuser::ShowWindow; use winapi::um::winuser::SetProcessDPIAware; unsafe { SetProcessDPIAware();