CHORE: Improve consistency in string and function names #3

This commit is contained in:
GithubAnon0000 2025-09-29 23:41:15 +02:00
parent 453df4b373
commit 84d887b831
3 changed files with 3 additions and 3 deletions

View file

@ -932,7 +932,7 @@ timerStopped = false;
else ""
)
if self.mw.col.conf["hideColor"]:
if self.mw.col.conf["showColor"]:
return """
<td align=center><button %s title="%s" data-ease="%s" onclick='pycmd("ease%d");'>\
%s%s</button></td>""" % (

View file

@ -54,7 +54,7 @@ pub enum BoolKey {
ShowRemainingDueCountsInStudy,
#[strum(to_string = "addToCur")]
AddingDefaultsToCurrentDeck,
#[strum(to_string = "hideColor")]
#[strum(to_string = "showColor")]
ShowColoredButtons,
}

View file

@ -25,7 +25,7 @@ pub(crate) fn schema11_config_as_string(creation_offset: Option<i32>) -> String
"schedVer": 2,
"creationOffset": creation_offset,
"sched2021": true,
"hideColor": false,
"showColor": false,
});
serde_json::to_string(&obj).unwrap()
}