mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-22 05:26:14 +08:00
sending nosave
This commit is contained in:
parent
b59392cf1c
commit
6c307f0d78
1 changed files with 9 additions and 9 deletions
|
@ -364,7 +364,7 @@ export function setBlindMode(blind: boolean, nosave?: boolean): void {
|
|||
}
|
||||
config.blindMode = blind;
|
||||
if (!nosave) saveToLocalStorage();
|
||||
ConfigEvent.dispatch("blindMode", config.blindMode);
|
||||
ConfigEvent.dispatch("blindMode", config.blindMode, nosave);
|
||||
}
|
||||
|
||||
export function setChartAccuracy(
|
||||
|
@ -412,7 +412,7 @@ export function setStopOnError(
|
|||
config.confidenceMode = "off";
|
||||
}
|
||||
if (!nosave) saveToLocalStorage();
|
||||
ConfigEvent.dispatch("stopOnError", config.stopOnError);
|
||||
ConfigEvent.dispatch("stopOnError", config.stopOnError, nosave);
|
||||
}
|
||||
|
||||
export function setAlwaysShowDecimalPlaces(
|
||||
|
@ -495,7 +495,7 @@ export function setPaceCaret(
|
|||
// }
|
||||
config.paceCaret = val;
|
||||
if (!nosave) saveToLocalStorage();
|
||||
ConfigEvent.dispatch("paceCaret", config.paceCaret);
|
||||
ConfigEvent.dispatch("paceCaret", config.paceCaret, nosave);
|
||||
}
|
||||
|
||||
export function setPaceCaretCustomSpeed(val: number, nosave?: boolean): void {
|
||||
|
@ -535,7 +535,7 @@ export function setMinWpm(
|
|||
}
|
||||
config.minWpm = minwpm;
|
||||
if (!nosave) saveToLocalStorage();
|
||||
ConfigEvent.dispatch("minWpm", config.minWpm);
|
||||
ConfigEvent.dispatch("minWpm", config.minWpm, nosave);
|
||||
}
|
||||
|
||||
export function setMinWpmCustomSpeed(val: number, nosave?: boolean): void {
|
||||
|
@ -563,7 +563,7 @@ export function setMinAcc(
|
|||
}
|
||||
config.minAcc = min;
|
||||
if (!nosave) saveToLocalStorage();
|
||||
ConfigEvent.dispatch("minAcc", config.minAcc);
|
||||
ConfigEvent.dispatch("minAcc", config.minAcc, nosave);
|
||||
}
|
||||
|
||||
export function setMinAccCustom(val: number, nosave?: boolean): void {
|
||||
|
@ -591,7 +591,7 @@ export function setMinBurst(
|
|||
}
|
||||
config.minBurst = min;
|
||||
if (!nosave) saveToLocalStorage();
|
||||
ConfigEvent.dispatch("minBurst", config.minBurst);
|
||||
ConfigEvent.dispatch("minBurst", config.minBurst, nosave);
|
||||
}
|
||||
|
||||
export function setMinBurstCustomSpeed(val: number, nosave?: boolean): void {
|
||||
|
@ -926,7 +926,7 @@ export function setShowAvg(live: boolean, nosave?: boolean): void {
|
|||
}
|
||||
config.showAvg = live;
|
||||
if (!nosave) saveToLocalStorage();
|
||||
ConfigEvent.dispatch("showAvg", config.showAvg);
|
||||
ConfigEvent.dispatch("showAvg", config.showAvg, nosave);
|
||||
}
|
||||
|
||||
export function setHighlightMode(
|
||||
|
@ -1288,7 +1288,7 @@ export function setConfidenceMode(
|
|||
config.stopOnError = "off";
|
||||
}
|
||||
if (!nosave) saveToLocalStorage();
|
||||
ConfigEvent.dispatch("confidenceMode", config.confidenceMode);
|
||||
ConfigEvent.dispatch("confidenceMode", config.confidenceMode, nosave);
|
||||
}
|
||||
|
||||
export function setIndicateTypos(
|
||||
|
@ -1542,7 +1542,7 @@ export function setLayout(layout: string, nosave?: boolean): void {
|
|||
}
|
||||
config.layout = layout;
|
||||
if (!nosave) saveToLocalStorage();
|
||||
ConfigEvent.dispatch("layout", config.layout);
|
||||
ConfigEvent.dispatch("layout", config.layout, nosave);
|
||||
}
|
||||
|
||||
// export function setSavedLayout(layout, nosave?: boolean): void {
|
||||
|
|
Loading…
Add table
Reference in a new issue