windows fixes
This commit is contained in:
parent
b15393bacf
commit
c9281c9bcd
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
autofocus
|
autofocus
|
||||||
|
canvaskit
|
||||||
cupertino
|
cupertino
|
||||||
cupertinoicons
|
cupertinoicons
|
||||||
fromargb
|
fromargb
|
||||||
|
@ -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;
|
||||||
|
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user