mirror of
https://gitlab.freedesktop.org/dabrain34/GstPipelineStudio.git
synced 2024-12-18 22:16:33 +00:00
elements: sort the favorites by alphabetical order
This commit is contained in:
parent
05aeb0caf4
commit
8059f73f51
1 changed files with 2 additions and 1 deletions
|
@ -99,7 +99,8 @@ pub fn setup_favorite_list(app: &GPSApp) {
|
|||
}
|
||||
|
||||
pub fn add_to_favorite_list(app: &GPSApp, element_name: String) {
|
||||
let favorites = Settings::get_favorites_list();
|
||||
let mut favorites = Settings::get_favorites_list();
|
||||
favorites.sort();
|
||||
if !favorites.contains(&element_name) {
|
||||
let favorite_list: TreeView = app
|
||||
.builder
|
||||
|
|
Loading…
Reference in a new issue