mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-03 14:27:03 +02:00
FEATURE: Add "Recent Errors" tab and improved error modal (#2169)
This commit is contained in:
committed by
GitHub
parent
cf72937faf
commit
18f84396e2
@@ -12,6 +12,7 @@ import {
|
||||
assertAndSanitizeStyles,
|
||||
} from "../JsonSchema/JSONSchemaAssertion";
|
||||
import { mergePlayerDefinedKeyBindings, type PlayerDefinedKeyBindingsType } from "../utils/KeyBindingUtils";
|
||||
import { toggleSuppressErrorModals } from "../ErrorHandling/ErrorState";
|
||||
|
||||
/**
|
||||
* This function won't be able to catch **all** invalid hostnames. In order to validate a hostname properly, we need to
|
||||
@@ -119,6 +120,8 @@ export const Settings = {
|
||||
SaveGameOnFileSave: true,
|
||||
/** Whether to hide the confirmation dialog for augmentation purchases. */
|
||||
SuppressBuyAugmentationConfirmation: false,
|
||||
/** Whether to hide the info dialog for script errors. */
|
||||
SuppressErrorModals: false,
|
||||
/** Whether to hide the dialog showing new faction invites. */
|
||||
SuppressFactionInvites: false,
|
||||
/** Whether to hide the dialog when the player receives a new message file. */
|
||||
@@ -253,5 +256,8 @@ export const Settings = {
|
||||
|
||||
// Merge Settings.KeyBindings with DefaultKeyBindings.
|
||||
mergePlayerDefinedKeyBindings(Settings.KeyBindings);
|
||||
|
||||
// Set up initial state for error modal suppression
|
||||
toggleSuppressErrorModals(Settings.SuppressErrorModals, true);
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user