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

Improve launch_command

This commit is contained in:
Username404-59 2025-06-22 16:15:33 +02:00
parent a253a23d57
commit a6f63b3bf1
No known key found for this signature in database
GPG key ID: F3A1878B14F5F0D7
5 changed files with 40 additions and 29 deletions

View file

@ -262,8 +262,13 @@ impl Module<Button> for MenuModule {
for entry in $entries.values() {
let container1 = container.clone();
let tx = context.tx.clone();
let (button, sub_menu) =
ui::make_entry(entry, tx, &image_provider, truncate_mode, &self.launch_command);
let (button, sub_menu) = 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);