We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 80c1145 + cd8ee34 commit aea2d11Copy full SHA for aea2d11
src/components/TopBar/SearchBar.tsx
@@ -32,6 +32,11 @@ export default function SearchBar({
32
const currentPlace = split[split.length - 2];
33
34
async function onSearch() {
35
+ if (currentVolume.length == 0) {
36
+ alert("Please select a volume before searching.");
37
+ return;
38
+ }
39
+
40
const results = await invoke<DirectoryContent[]>("search_directory", {
41
query: searchValue,
42
searchDirectory: currentDirectoryPath,
0 commit comments