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(
|
patches.push(
|
||||||
after(
|
after(
|
||||||
"default",
|
"default",
|
||||||
bunny?.metro?.findByNameLazy("UserSettingsOverviewWrapper", false),
|
bunny?.metro?.findByPropsLazy(["renderTitle", "sections"], false),
|
||||||
(_, ret) => {
|
(_, ret) => {
|
||||||
const UserSettingsOverview = findInReactTree(
|
const UserSettingsOverview = findInReactTree(
|
||||||
ret.props.children,
|
ret.props.children,
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ plugin.storage.librefmUsername ??= "";
|
||||||
plugin.storage.librefmApiKey ??= "";
|
plugin.storage.librefmApiKey ??= "";
|
||||||
plugin.storage.listenbrainzUsername ??= "";
|
plugin.storage.listenbrainzUsername ??= "";
|
||||||
plugin.storage.listenbrainzToken ??= "";
|
plugin.storage.listenbrainzToken ??= "";
|
||||||
plugin.storage.addToSidebar ??= true;
|
plugin.storage.addToSidebar ??= false;
|
||||||
plugin.storage.showLargeText ??= true;
|
plugin.storage.showLargeText ??= true;
|
||||||
plugin.storage.showLargeText ??= true;
|
plugin.storage.showLargeText ??= true;
|
||||||
|
|
||||||
|
|
@ -585,11 +585,7 @@ export default function Settings() {
|
||||||
<TableSwitchRow
|
<TableSwitchRow
|
||||||
label="Add to Sidebar"
|
label="Add to Sidebar"
|
||||||
subLabel="Show plugin in Discord settings"
|
subLabel="Show plugin in Discord settings"
|
||||||
value={get("addToSidebar", false)}
|
value={false}
|
||||||
onValueChange={(value: boolean) => {
|
|
||||||
set("addToSidebar", value);
|
|
||||||
forceUpdate();
|
|
||||||
}}
|
|
||||||
/>
|
/>
|
||||||
</TableRowGroup>
|
</TableRowGroup>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -344,8 +344,8 @@ async function main() {
|
||||||
console.clear();
|
console.clear();
|
||||||
|
|
||||||
// Configuration
|
// Configuration
|
||||||
const distPath = path.join(__dirname, "dist");
|
const distPath = path.join(__dirname, "..", "dist");
|
||||||
const port = process.env.PORT || 3000;
|
const port = process.env.PORT || 1400;
|
||||||
const host = "0.0.0.0";
|
const host = "0.0.0.0";
|
||||||
const primaryIP = getPrimaryIP();
|
const primaryIP = getPrimaryIP();
|
||||||
const allInterfaces = getAllNetworkInterfaces();
|
const allInterfaces = getAllNetworkInterfaces();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue