opening the settings bypasses the OOBE

This commit is contained in:
buzz-lightsnack-2007 2024-05-21 14:37:23 +08:00
parent 717ebab479
commit bfabc7506e

View file

@ -28,7 +28,9 @@ class Page_Settings extends Page {
// Instantiate the filters module, since it's needed for some of the actions below.
this.data.filters = (this.data.filters) ? this.data.filters : new filters();
// Bypass the OOBE page since the user opened the settings page.
global.write([`init`], true, 1, {"silent": true});
// Set the actions.
let ACTIONS = {};
ACTIONS[`filters,update`] = async () => {this.data.filters.update(`*`);};