瀏覽代碼

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

darkfi 1 年之前
父節點
當前提交
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) {