This commit is contained in:
Scott E. Graves 2025-03-03 11:23:39 -06:00
parent 4a59917d23
commit 2096669a7f
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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) {}