fix: app-list ordering of favorites and config updates on drop
This commit is contained in:
parent
20e084c808
commit
aaf0aa674c
2 changed files with 26 additions and 37 deletions
|
|
@ -57,4 +57,9 @@ impl AppListConfig {
|
|||
let _ = self.write_entry(&config);
|
||||
}
|
||||
}
|
||||
|
||||
pub fn update_favorites(&mut self, favorites: Vec<String>, config: &Config) {
|
||||
self.favorites = favorites;
|
||||
let _ = self.write_entry(&config);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue