fixes
This commit is contained in:
parent
4a59917d23
commit
2096669a7f
@ -262,7 +262,7 @@ void handlers::handle_post_mount(auto &&req, auto &&res) const {
|
|||||||
if (unmount) {
|
if (unmount) {
|
||||||
read_process(prov, name, "-unmount");
|
read_process(prov, name, "-unmount");
|
||||||
} else {
|
} else {
|
||||||
read_process(prov, name, fmt::format("\"{}\"", location));
|
read_process(prov, name, fmt::format(R"("{}")", location));
|
||||||
}
|
}
|
||||||
|
|
||||||
res.status = http_error_codes::ok;
|
res.status = http_error_codes::ok;
|
||||||
@ -275,7 +275,7 @@ void handlers::handle_put_set_value_by_name(auto &&req, auto &&res) {
|
|||||||
auto value = req.get_param_value("value");
|
auto value = req.get_param_value("value");
|
||||||
|
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
read_process(prov, name, fmt::format("-set {} \"{}\"", key, value));
|
read_process(prov, name, fmt::format(R"(-set {} "{}")", key, value));
|
||||||
#else //! defined(_WIN32)
|
#else //! defined(_WIN32)
|
||||||
read_process(prov, name, fmt::format("-set {} '{}'", key, value));
|
read_process(prov, name, fmt::format("-set {} '{}'", key, value));
|
||||||
#endif // defined(_WIN32)
|
#endif // defined(_WIN32)
|
||||||
|
@ -68,7 +68,7 @@ class _MountWidgetState extends State<MountWidget> {
|
|||||||
_enabled = false;
|
_enabled = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
String? location;
|
String? location = mount.path;
|
||||||
if (!isActive && mount.path.isEmpty) {
|
if (!isActive && mount.path.isEmpty) {
|
||||||
location = await mount.getMountLocation();
|
location = await mount.getMountLocation();
|
||||||
if (location == null) {}
|
if (location == null) {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user