From 2fd98cd57e6dffbc974aeaef4fbe4716203bac27 Mon Sep 17 00:00:00 2001 From: nekrondev Date: Fri, 14 Jun 2024 15:26:36 +0200 Subject: [PATCH] fix: disable console window for Windows GUI application Rust 1.18.0 added support for windows GUI application preventing to open a console window when the application is started. --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index abe98bcd..7fda99b3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,5 @@ +#![windows_subsystem = "windows"] + use gtk::prelude::*; use gtk::gio::ApplicationFlags;