Explorar o código

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

darkfi hai 1 ano
pai
achega
b547cd6fad
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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) {