Skip to content

Commit

Permalink
fix: update libcosmic with is_daemon
Browse files Browse the repository at this point in the history
  • Loading branch information
wash2 committed Nov 14, 2024
1 parent 8a20cbc commit ba0fec1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
32 changes: 16 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion cosmic-settings/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ use desktop::{
use event::wayland;
use page::Entity;
use std::collections::BTreeSet;
use std::time::Duration;
use std::{borrow::Cow, str::FromStr};

#[allow(clippy::struct_excessive_bools)]
Expand Down Expand Up @@ -781,7 +782,7 @@ impl cosmic::Application for SettingsApp {
fn on_close_requested(&self, id: window::Id) -> Option<Self::Message> {
if id == self.core.main_window_id().unwrap() {
std::thread::spawn(|| {
std::thread::sleep(tokio::time::Duration::from_millis(100));
std::thread::sleep(Duration::from_millis(100));
std::process::exit(0);
});
}
Expand Down

0 comments on commit ba0fec1

Please sign in to comment.