From 84d887b831cdcf00853f41e2f7a732bd66b088c9 Mon Sep 17 00:00:00 2001 From: GithubAnon0000 <160563432+GithubAnon0000@users.noreply.github.com> Date: Mon, 29 Sep 2025 23:41:15 +0200 Subject: [PATCH] CHORE: Improve consistency in string and function names #3 --- qt/aqt/reviewer.py | 2 +- rslib/src/config/bool.rs | 2 +- rslib/src/config/schema11.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qt/aqt/reviewer.py b/qt/aqt/reviewer.py index 9d7345e91..1c4601214 100644 --- a/qt/aqt/reviewer.py +++ b/qt/aqt/reviewer.py @@ -932,7 +932,7 @@ timerStopped = false; else "" ) - if self.mw.col.conf["hideColor"]: + if self.mw.col.conf["showColor"]: return """ """ % ( diff --git a/rslib/src/config/bool.rs b/rslib/src/config/bool.rs index 2207b5d4c..53872f35b 100644 --- a/rslib/src/config/bool.rs +++ b/rslib/src/config/bool.rs @@ -54,7 +54,7 @@ pub enum BoolKey { ShowRemainingDueCountsInStudy, #[strum(to_string = "addToCur")] AddingDefaultsToCurrentDeck, - #[strum(to_string = "hideColor")] + #[strum(to_string = "showColor")] ShowColoredButtons, } diff --git a/rslib/src/config/schema11.rs b/rslib/src/config/schema11.rs index c81f398ea..96e199e7a 100644 --- a/rslib/src/config/schema11.rs +++ b/rslib/src/config/schema11.rs @@ -25,7 +25,7 @@ pub(crate) fn schema11_config_as_string(creation_offset: Option) -> String "schedVer": 2, "creationOffset": creation_offset, "sched2021": true, - "hideColor": false, + "showColor": false, }); serde_json::to_string(&obj).unwrap() }