Skip to content

Commit

Permalink
fix(default_apps: audio/mp3 not being associated for audio
Browse files Browse the repository at this point in the history
  • Loading branch information
mmstick committed Dec 11, 2024
1 parent 462a917 commit a678e4e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cosmic-settings/src/pages/system/default_apps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ impl Page {
"application/ogg",
"application/x-cue",
"application/x-ogg",
"audio/mp3",
"x-content/audio-cdda",
]
.into_iter(),
Expand Down Expand Up @@ -392,6 +393,7 @@ async fn load_defaults(assocs: &BTreeMap<Arc<str>, Arc<App>>, for_mimes: &[&str]
for (id, (appid, app)) in unsorted.iter().enumerate() {
if let Some(current_app) = current_app {
if app.name.as_ref() == current_app.name.as_ref() {
eprintln!("selected = {}; current = {}", app.name, current_app.name);
selected = Some(id);
}
}
Expand Down

0 comments on commit a678e4e

Please sign in to comment.