Skip to content

Commit

Permalink
fix: error fix developer settings toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
pylixonly committed Sep 9, 2024
1 parent c48fc16 commit 0ab65bb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/core/ui/reporter/components/ErrorBoundaryScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function ErrorBoundaryScreen(props: {
<View style={{ height: "100%", padding: 8, gap: 12 }} >
<View style={{ gap: 4 }}>
<Text variant="display-lg">Uh oh.</Text>
<Text variant="text-md/normal">A crash occured while rendering a component. This could be caused by a plugin, Bunny or Discord itself</Text>
<Text variant="text-md/normal">A crash occured while rendering a component. This could be caused by a plugin, Bunny or Discord itself.</Text>
<Text variant="text-sm/normal" color="text-muted">{debugInfo.os.name}; {debugInfo.discord.build} ({debugInfo.discord.version}); {debugInfo.bunny.version}</Text>
</View>
<ScrollView fadingEdgeLength={64} contentContainerStyle={{ gap: 12 }}>
Expand Down
2 changes: 1 addition & 1 deletion src/core/ui/settings/pages/General/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default function General() {
<TableSwitchRow
label={Strings.DEVELOPER_SETTINGS}
icon={<TableRow.Icon source={findAssetId("ic_progress_wrench_24px")} />}
value={BunnySettings.developer.enabled = true}
value={BunnySettings.developer.enabled}
onValueChange={(v: boolean) => {
BunnySettings.developer.enabled = v;
}}
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ export default async () => {
window.bunny = lib;

if (!BunnySettings.isSafeMode()) {
ColorManager.initialize(),
PluginManager.initialize(),
ColorManager.initialize();
PluginManager.initialize();
FontManager.initialize();
}

Expand Down

0 comments on commit 0ab65bb

Please sign in to comment.