Skip to content

Commit

Permalink
Fix wrong core variable name for boolean preferences.
Browse files Browse the repository at this point in the history
  • Loading branch information
Swordfish90 committed May 9, 2024
1 parent 0569936 commit 654e594
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ private fun CoreOptions(
for (coreOption in coreOptions) {
if (coreOption.getEntriesValues().toSet() == CoreOptionsPreferenceHelper.BOOLEAN_SET) {
LemuroidSettingsSwitch(
state = booleanPreferenceState(coreOption.getKey(), coreOption.getCurrentValue() == "enabled"),
state = booleanPreferenceState(
CoreVariablesManager.computeSharedPreferenceKey(coreOption.getKey(), systemID),
coreOption.getCurrentValue() == "enabled"
),
title = { Text(text = coreOption.getDisplayName(context)) },
)
} else {
Expand Down

0 comments on commit 654e594

Please sign in to comment.