fix: app-list ordering of favorites and config updates on drop

This commit is contained in:
Ashley Wulber 2023-07-27 12:11:58 -04:00 • committed by Ashley Wulber
parent 20e084c808
commit aaf0aa674c
2 changed files with 26 additions and 37 deletions

View file

@ -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);
}
}