Change SuppressSaveToast to only work on auto-save

Before this, this setting also suppressed the toast for the manual clicks.
This commit is contained in:
Martin Fournier
2022-01-05 14:56:28 -05:00
parent 7107dd682c
commit 46fe8cc94c
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -64,12 +64,12 @@ class BitburnerSaveObject {
return saveString;
}
saveGame(): void {
saveGame(emitToastEvent = true): void {
const saveString = this.getSaveString();
save(saveString)
.then(() => {
if (!Settings.SuppressSavedGameToast) {
if (emitToastEvent) {
SnackbarEvents.emit("Game Saved!", "info", 2000);
}
})