From c9281c9bcdad6920afdf67516cd5e88aa6d3716e Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Mon, 17 Mar 2025 12:50:16 -0500 Subject: [PATCH] windows fixes --- repertory/repertory/src/ui/handlers.cpp | 4 ++++ web/repertory/.cspell/words.txt | 1 + web/repertory/lib/widgets/mount_widget.dart | 2 +- web/repertory/web/index.html | 5 +++++ 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/repertory/repertory/src/ui/handlers.cpp b/repertory/repertory/src/ui/handlers.cpp index e80c6906..61956425 100644 --- a/repertory/repertory/src/ui/handlers.cpp +++ b/repertory/repertory/src/ui/handlers.cpp @@ -363,7 +363,11 @@ void handlers::handle_post_mount(auto &&req, auto &&res) const { if (unmount) { launch_process(prov, name, "-unmount"); } else { +#if defined(_WIN32) + if (utils::file::directory{location}.exists()) { +#else // !defined(_WIN32) if (not utils::file::directory{location}.exists()) { +#endif // defined(_WIN32) res.status = http_error_codes::internal_error; return; } diff --git a/web/repertory/.cspell/words.txt b/web/repertory/.cspell/words.txt index 39b55694..deb8473d 100644 --- a/web/repertory/.cspell/words.txt +++ b/web/repertory/.cspell/words.txt @@ -1,4 +1,5 @@ autofocus +canvaskit cupertino cupertinoicons fromargb diff --git a/web/repertory/lib/widgets/mount_widget.dart b/web/repertory/lib/widgets/mount_widget.dart index f7a1871b..e5ec1b74 100644 --- a/web/repertory/lib/widgets/mount_widget.dart +++ b/web/repertory/lib/widgets/mount_widget.dart @@ -110,7 +110,7 @@ class _MountWidgetState extends State { return cleanup(); } - displayErrorMessage(context, "Mount location not found"); + displayErrorMessage(context, "Mount location is not available"); return cleanup(); } : null; diff --git a/web/repertory/web/index.html b/web/repertory/web/index.html index 4b76ab6f..ae368309 100644 --- a/web/repertory/web/index.html +++ b/web/repertory/web/index.html @@ -33,6 +33,11 @@ +