1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-08-17 14:51:04 +02:00

Merge pull request #909 from JakeStanger/fix/custom-button-script

fix(custom): buttons lock up on long running commands
This commit is contained in:
Jake Stanger 2025-03-24 12:06:02 +00:00 committed by GitHub
commit 157e34ceb8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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" {