Skip to content

Commit

Permalink
Restore first-time setup
Browse files Browse the repository at this point in the history
  • Loading branch information
phildenhoff committed Oct 11, 2024
1 parent 792fd37 commit b42e0dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ export const App = () => {
}, []);
useEffect(() => {
settings.subscribe((settings) => {
if (settings !== undefined && settings.calibreLibraryPath?.length > 0) {
setLibraryPath(settings.calibreLibraryPath);
if (settings !== undefined) {
setLibraryPath(settings.calibreLibraryPath || null);
setIsLoading(false);
}
});
Expand Down
6 changes: 0 additions & 6 deletions src/components/organisms/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -242,12 +242,6 @@ const SidebarPure = ({
<Button variant="outline" onPointerDown={switchLibraryHandler}>
Switch library
</Button>
<Button variant="transparent" justify="flex-start">
First-time setup
</Button>
<Button variant="transparent" justify="flex-start">
Configure library
</Button>
</Stack>
<Divider my="md" />
<Stack>
Expand Down

0 comments on commit b42e0dc

Please sign in to comment.