mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 12:47:11 -05:00
CHORE: Improve consistency in string and function names #3
This commit is contained in:
parent
453df4b373
commit
84d887b831
3 changed files with 3 additions and 3 deletions
|
|
@ -932,7 +932,7 @@ timerStopped = false;
|
||||||
else ""
|
else ""
|
||||||
)
|
)
|
||||||
|
|
||||||
if self.mw.col.conf["hideColor"]:
|
if self.mw.col.conf["showColor"]:
|
||||||
return """
|
return """
|
||||||
<td align=center><button %s title="%s" data-ease="%s" onclick='pycmd("ease%d");'>\
|
<td align=center><button %s title="%s" data-ease="%s" onclick='pycmd("ease%d");'>\
|
||||||
%s%s</button></td>""" % (
|
%s%s</button></td>""" % (
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ pub enum BoolKey {
|
||||||
ShowRemainingDueCountsInStudy,
|
ShowRemainingDueCountsInStudy,
|
||||||
#[strum(to_string = "addToCur")]
|
#[strum(to_string = "addToCur")]
|
||||||
AddingDefaultsToCurrentDeck,
|
AddingDefaultsToCurrentDeck,
|
||||||
#[strum(to_string = "hideColor")]
|
#[strum(to_string = "showColor")]
|
||||||
ShowColoredButtons,
|
ShowColoredButtons,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ pub(crate) fn schema11_config_as_string(creation_offset: Option<i32>) -> String
|
||||||
"schedVer": 2,
|
"schedVer": 2,
|
||||||
"creationOffset": creation_offset,
|
"creationOffset": creation_offset,
|
||||||
"sched2021": true,
|
"sched2021": true,
|
||||||
"hideColor": false,
|
"showColor": false,
|
||||||
});
|
});
|
||||||
serde_json::to_string(&obj).unwrap()
|
serde_json::to_string(&obj).unwrap()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue