mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-04 14:47:53 +02:00
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:
+2
-2
@@ -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);
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user