fix: 🐛 avoid removing disallowed file windows
This commit is contained in:
parent
8967e2d53f
commit
19a3266b6f
2 changed files with 4 additions and 3 deletions
|
|
@ -69,7 +69,7 @@ async def ensure_meilisearch_installed() -> bool:
|
|||
else:
|
||||
non_existing_paths.add(path)
|
||||
|
||||
if len(non_existing_paths) > 0:
|
||||
if len(non_existing_paths) > 0 and os.name != "nt":
|
||||
# Clear the meilisearch binary
|
||||
if meilisearchPath in existing_paths:
|
||||
os.remove(meilisearchPath)
|
||||
|
|
@ -134,5 +134,5 @@ async def start_meilisearch():
|
|||
stderr=subprocess.STDOUT,
|
||||
close_fds=True,
|
||||
start_new_session=True,
|
||||
shell=True
|
||||
shell=True,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -203,6 +203,8 @@ function GUI(props: GUIProps) {
|
|||
if (mainTextInputRef.current) {
|
||||
let input = (mainTextInputRef.current as any).inputValue;
|
||||
|
||||
if (input.trim() === "") return;
|
||||
|
||||
if (input.startsWith("#") && (input.length === 7 || input.length === 4)) {
|
||||
localStorage.setItem("continueButtonColor", input);
|
||||
(mainTextInputRef.current as any).setInputValue("");
|
||||
|
|
@ -241,7 +243,6 @@ function GUI(props: GUIProps) {
|
|||
return;
|
||||
}
|
||||
}
|
||||
if (input.trim() === "") return;
|
||||
|
||||
client.sendMainInput(input);
|
||||
dispatch(temporarilyPushToUserInputQueue(input));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue