Эх сурвалжийг харах

app: hide the Windows cmd.exe when launching the app (only enable for release builds).

darkfi 1 жил өмнө
parent
commit
b547cd6fad
1 өөрчлөгдсөн 4 нэмэгдсэн , 0 устгасан
  1. 4 0
      bin/app/src/main.rs

+ 4 - 0
bin/app/src/main.rs

@@ -73,6 +73,10 @@ mod util;
 
 use crate::{net::ZeroMQAdapter, text::TextShaper};
 
+// Hides the cmd.exe terminal on Windows.
+// Enable this when making release builds.
+//#![windows_subsystem = "windows"]
+
 pub type ExecutorPtr = Arc<smol::Executor<'static>>;
 
 fn panic_hook(panic_info: &std::panic::PanicHookInfo) {