fix serve and turn off add to sidebar option
Fix serve Turn off option to turn on "Add to Sidebar" (causes crashes on latest alpha)
This commit is contained in:
parent
4759d6e778
commit
fd02080c2b
3 changed files with 5 additions and 9 deletions
|
|
@ -51,7 +51,7 @@ function patchPanelUI(tabs, patches) {
|
|||
patches.push(
|
||||
after(
|
||||
"default",
|
||||
bunny?.metro?.findByNameLazy("UserSettingsOverviewWrapper", false),
|
||||
bunny?.metro?.findByPropsLazy(["renderTitle", "sections"], false),
|
||||
(_, ret) => {
|
||||
const UserSettingsOverview = findInReactTree(
|
||||
ret.props.children,
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ plugin.storage.librefmUsername ??= "";
|
|||
plugin.storage.librefmApiKey ??= "";
|
||||
plugin.storage.listenbrainzUsername ??= "";
|
||||
plugin.storage.listenbrainzToken ??= "";
|
||||
plugin.storage.addToSidebar ??= true;
|
||||
plugin.storage.addToSidebar ??= false;
|
||||
plugin.storage.showLargeText ??= true;
|
||||
plugin.storage.showLargeText ??= true;
|
||||
|
||||
|
|
@ -585,11 +585,7 @@ export default function Settings() {
|
|||
<TableSwitchRow
|
||||
label="Add to Sidebar"
|
||||
subLabel="Show plugin in Discord settings"
|
||||
value={get("addToSidebar", false)}
|
||||
onValueChange={(value: boolean) => {
|
||||
set("addToSidebar", value);
|
||||
forceUpdate();
|
||||
}}
|
||||
value={false}
|
||||
/>
|
||||
</TableRowGroup>
|
||||
|
||||
|
|
|
|||
|
|
@ -344,8 +344,8 @@ async function main() {
|
|||
console.clear();
|
||||
|
||||
// Configuration
|
||||
const distPath = path.join(__dirname, "dist");
|
||||
const port = process.env.PORT || 3000;
|
||||
const distPath = path.join(__dirname, "..", "dist");
|
||||
const port = process.env.PORT || 1400;
|
||||
const host = "0.0.0.0";
|
||||
const primaryIP = getPrimaryIP();
|
||||
const allInterfaces = getAllNetworkInterfaces();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue