diff --git a/src/components/TopBar/SearchBar.tsx b/src/components/TopBar/SearchBar.tsx index e434507..5e274c9 100644 --- a/src/components/TopBar/SearchBar.tsx +++ b/src/components/TopBar/SearchBar.tsx @@ -32,6 +32,11 @@ export default function SearchBar({ const currentPlace = split[split.length - 2]; async function onSearch() { + if (currentVolume.length == 0) { + alert("Please select a volume before searching."); + return; + } + const results = await invoke("search_directory", { query: searchValue, searchDirectory: currentDirectoryPath,