fix: increase channel size for display service
This commit is contained in:
parent
3263b6d355
commit
355c27caa8
3 changed files with 3 additions and 13 deletions
|
|
@ -789,16 +789,6 @@ impl cosmic::Application for SettingsApp {
|
|||
.dialog(self.active_page)
|
||||
.map(|e| e.map(Message::PageMessage))
|
||||
}
|
||||
|
||||
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(Duration::from_millis(100));
|
||||
std::process::exit(0);
|
||||
});
|
||||
}
|
||||
None
|
||||
}
|
||||
}
|
||||
|
||||
impl SettingsApp {
|
||||
|
|
|
|||
|
|
@ -249,7 +249,7 @@ impl page::Page<crate::pages::Message> for Page {
|
|||
let runtime = tokio::runtime::Handle::current();
|
||||
self.background_service = Some(tokio::task::spawn_blocking(move || {
|
||||
runtime.block_on(async move {
|
||||
let (tx, mut rx) = tachyonix::channel(5);
|
||||
let (tx, mut rx) = tachyonix::channel(200);
|
||||
let Ok((mut context, mut event_queue)) = cosmic_randr::connect(tx) else {
|
||||
return;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue