Commit d50908b4 authored by Timothée Giet's avatar Timothée Giet

memory, always enable sounds in audio memory

make sure to always have audioVoices enabled inside audio memory activities,
as sounds in audio memory are in compressed format which needs the audioVoices component
parent aec7750c
......@@ -75,11 +75,23 @@ ActivityBase {
property int rows
property int spacing: 5 * ApplicationInfo.ratio
property bool isMultipleDatasetMode: activity.datasetLoader.data != 0
property bool audioVoicesConfig: false
}
onStart: Activity.start(items)
onStart: {
Activity.start(items);
if(activity.isMusicalActivity) {
items.audioVoicesConfig = ApplicationSettings.isAudioVoicesEnabled;
ApplicationSettings.isAudioVoicesEnabled = true;
}
}
onStop: Activity.stop()
onStop: {
if(activity.isMusicalActivity) {
ApplicationSettings.isAudioVoicesEnabled = items.audioVoicesConfig;
}
Activity.stop();
}
ListModel {
id: containerModel
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment