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:
parent
81ce2c169f
commit
931807e326
4 changed files with 34 additions and 27 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue