windows fixes

This commit is contained in:
Scott E. Graves 2025-03-17 12:50:16 -05:00
parent b15393bacf
commit c9281c9bcd
4 changed files with 11 additions and 1 deletions

View File

@ -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;
}

View File

@ -1,4 +1,5 @@
autofocus
canvaskit
cupertino
cupertinoicons
fromargb

View File

@ -110,7 +110,7 @@ class _MountWidgetState extends State<MountWidget> {
return cleanup();
}
displayErrorMessage(context, "Mount location not found");
displayErrorMessage(context, "Mount location is not available");
return cleanup();
}
: null;

View File

@ -33,6 +33,11 @@
<link rel="manifest" href="manifest.json">
</head>
<body>
<script>
window.flutterConfiguration = {
canvasKitBaseUrl: "/canvaskit/"
};
</script>
<script src="flutter_bootstrap.js" async></script>
</body>
</html>