1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-08-16 22:31:03 +02:00

fix(custom): buttons lock up on long running commands

Fixes #899
This commit is contained in:
Jake Stanger 2025-03-24 12:01:59 +00:00
parent 29e00b4f6b
commit e8da00b850
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61

View file

@ -203,10 +203,7 @@ impl Module<gtk::Box> for CustomModule {
debug!("executing command: '{}'", script.cmd); debug!("executing command: '{}'", script.cmd);
let args = event.args.unwrap_or_default(); let args = event.args.unwrap_or_default();
script.run_as_oneshot(Some(&args));
if let Err(err) = script.get_output(Some(&args)).await {
error!("{err:?}");
}
} else if event.cmd == "popup:toggle" { } else if event.cmd == "popup:toggle" {
send_async!(tx, ModuleUpdateEvent::TogglePopup(event.id)); send_async!(tx, ModuleUpdateEvent::TogglePopup(event.id));
} else if event.cmd == "popup:open" { } else if event.cmd == "popup:open" {