Jelajahi Sumber

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

darkfi 1 tahun lalu
induk
melakukan
b547cd6fad
1 mengubah file dengan 4 tambahan dan 0 penghapusan
  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) {