fix: update libcosmic with is_daemon
This commit is contained in:
parent
8a20cbc748
commit
ba0fec15e0
2 changed files with 18 additions and 17 deletions
|
|
@ -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)]
|
||||
|
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue