Bring the preventUserConfigOpen into line with the rest of the setting implementations that I like more
This commit is contained in:
parent
8ca82c2cc1
commit
f40d9f9381
6 changed files with 27 additions and 34 deletions
|
|
@ -1,10 +1,7 @@
|
|||
import { __ID } from "../consts.mjs";
|
||||
import { preventUserConfigOpen } from "../settings/preventUserConfigOpen.mjs";
|
||||
import { startSidebarExpanded } from "../settings/startSidebarExpanded.mjs";
|
||||
|
||||
Hooks.once(`init`, () => {
|
||||
console.log(`${__ID} | Initializing`);
|
||||
|
||||
preventUserConfigOpen.register();
|
||||
startSidebarExpanded.register();
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1,12 +0,0 @@
|
|||
import { preventUserConfigOpen } from "../settings/preventUserConfigOpen.mjs";
|
||||
|
||||
// #region Once
|
||||
Hooks.once(`renderUserConfig`, (app, element) => {
|
||||
|
||||
// MARK: Prevent Unready Open
|
||||
if (!game.ready && preventUserConfigOpen.value()) {
|
||||
element.style.display = `none`;
|
||||
app.close();
|
||||
};
|
||||
});
|
||||
// #endregion Once
|
||||
Loading…
Add table
Add a link
Reference in a new issue