Skip to content

Commit

Permalink
Show zwn mode info on first start
Browse files Browse the repository at this point in the history
  • Loading branch information
woelper committed Jun 18, 2023
1 parent 293c4df commit 425d02f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ fn main() -> Result<(), String> {
.set_window_icon_data(Some(icon_data))
.set_taskbar_icon_data(Some(icon_data))
.multisampling(0)
.min_size(600, 400);
.min_size(200, 200);

#[cfg(target_os = "windows")]
{
Expand Down Expand Up @@ -103,7 +103,15 @@ fn main() -> Result<(), String> {
window_config.width = settings.window_geometry.1 .0;
window_config.height = settings.window_geometry.1 .1;
}
debug!("Loaded vsync.");
debug!("Loaded settings.");
if settings.zen_mode {
let mut title_string = window_config.title.clone();
title_string.push_str(&format!(
" '{}' to disable zen mode",
shortcuts::lookup(&settings.shortcuts, &shortcuts::InputEvent::ZenMode)
));
window_config = window_config.title(&title_string);
}
}
Err(e) => {
error!("Could not load settings: {e}");
Expand Down

0 comments on commit 425d02f

Please sign in to comment.