mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-08-17 14:51:04 +02:00
refactor: move label truncate function to ext trait
Conflicts: src/gtk_helpers.rs src/modules/music/mod.rs
This commit is contained in:
parent
cc6f21ed68
commit
8b05ed526d
8 changed files with 44 additions and 35 deletions
|
@ -66,7 +66,7 @@ impl Module<Label> for SwayModeModule {
|
|||
let label = label.clone();
|
||||
|
||||
if let Some(truncate) = self.truncate {
|
||||
truncate.truncate_label(&label);
|
||||
label.truncate(truncate);
|
||||
}
|
||||
|
||||
let on_mode = move |mode: ModeEvent| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue