From ce715bfc138eda73c50418f1daafebaa59935318 Mon Sep 17 00:00:00 2001 From: John Shewchuk Date: Fri, 4 Dec 2020 09:45:12 -0500 Subject: [PATCH] No console fixes #20, fixes #19 --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 078a83a..01b6632 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,4 @@ -// #![allow(dead_code)] +#![windows_subsystem = "windows"] use chrono::{DateTime, Duration, Local}; use std::cell::RefCell; @@ -380,6 +380,7 @@ impl BasicApp { } } + fn main() { nwg::init().expect("Failed to init Native Windows GUI"); nwg::Font::set_global_family("Segoe UI").expect("Failed to set default font");