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
4
Cargo.lock
generated
4
Cargo.lock
generated
|
|
@ -4009,9 +4009,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "itoa"
|
name = "itoa"
|
||||||
version = "1.0.12"
|
version = "1.0.13"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "7a73e9fe3c49d7afb2ace819fa181a287ce54a0983eda4e0eb05c22f82ffe534"
|
checksum = "540654e97a3f4470a492cd30ff187bc95d89557a903a2bbf112e2fae98104ef2"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "jni"
|
name = "jni"
|
||||||
|
|
|
||||||
|
|
@ -789,16 +789,6 @@ impl cosmic::Application for SettingsApp {
|
||||||
.dialog(self.active_page)
|
.dialog(self.active_page)
|
||||||
.map(|e| e.map(Message::PageMessage))
|
.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 {
|
impl SettingsApp {
|
||||||
|
|
|
||||||
|
|
@ -249,7 +249,7 @@ impl page::Page<crate::pages::Message> for Page {
|
||||||
let runtime = tokio::runtime::Handle::current();
|
let runtime = tokio::runtime::Handle::current();
|
||||||
self.background_service = Some(tokio::task::spawn_blocking(move || {
|
self.background_service = Some(tokio::task::spawn_blocking(move || {
|
||||||
runtime.block_on(async 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 {
|
let Ok((mut context, mut event_queue)) = cosmic_randr::connect(tx) else {
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue