1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-08-18 07:11:04 +02:00

Add a launch_command setting

(and put duplicate code in a function)
This commit is contained in:
Username404-59 2025-06-21 14:21:54 +02:00
parent 81ce2c169f
commit 931807e326
No known key found for this signature in database
GPG key ID: F3A1878B14F5F0D7
4 changed files with 34 additions and 27 deletions

View file

@ -263,7 +263,7 @@ impl Module<Button> for MenuModule {
let container1 = container.clone();
let tx = context.tx.clone();
let (button, sub_menu) =
ui::make_entry(entry, tx, &image_provider, truncate_mode);
ui::make_entry(entry, tx, &image_provider, truncate_mode, &self.launch_command);
if let Some(sub_menu) = sub_menu.clone() {
sub_menu.set_valign(alignment);