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) { if (unmount) {
launch_process(prov, name, "-unmount"); launch_process(prov, name, "-unmount");
} else { } else {
#if defined(_WIN32)
if (utils::file::directory{location}.exists()) {
#else // !defined(_WIN32)
if (not utils::file::directory{location}.exists()) { if (not utils::file::directory{location}.exists()) {
#endif // defined(_WIN32)
res.status = http_error_codes::internal_error; res.status = http_error_codes::internal_error;
return; return;
} }

View File

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

View File

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

View File

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