Skip to content

Commit

Permalink
Fix FLTK start_hidden option
Browse files Browse the repository at this point in the history
  • Loading branch information
thorio committed Mar 22, 2024
1 parent 487560f commit 39f8964
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gravel-frontend-fltk/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pub fn build(config: &Config) -> Ui {
// HACK: hiding the window right after it's created doesn't work on linux
// and causes high cpu usage on windows, so wait a bit and then hide it.
let sender_clone = sender.clone();
fltk::app::add_timeout3(0.01, move |_handle| sender_clone.send(Message::HideWindow));
fltk::app::add_timeout3(0.05, move |_handle| sender_clone.send(Message::HideWindow));
}

Ui {
Expand Down

0 comments on commit 39f8964

Please sign in to comment.