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) {
|
||||
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;
|
||||
}
|
||||
|
@ -1,4 +1,5 @@
|
||||
autofocus
|
||||
canvaskit
|
||||
cupertino
|
||||
cupertinoicons
|
||||
fromargb
|
||||
|
@ -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;
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user