Turn off read only checks. Needs to be redone.

This commit is contained in:
David Kocik 2022-09-07 10:46:41 +02:00
parent 81fa7a83b9
commit 5f38f20073

View File

@ -427,7 +427,7 @@ bool PrusaLink::get_storage(wxArrayString& output) const
}) })
.on_complete([&, this](std::string body, unsigned) { .on_complete([&, this](std::string body, unsigned) {
BOOST_LOG_TRIVIAL(debug) << boost::format("%1%: Got storage: %2%") % name % body; BOOST_LOG_TRIVIAL(error) << boost::format("%1%: Got storage: %2%") % name % body;
try try
{ {
std::stringstream ss(body); std::stringstream ss(body);
@ -447,8 +447,9 @@ bool PrusaLink::get_storage(wxArrayString& output) const
{ {
StorageInfo si; StorageInfo si;
si.name = boost::nowide::widen(*path); si.name = boost::nowide::widen(*path);
si.read_only = !space; // TODO: this turns off any read only checks
si.free_space = space ? std::stoll(*space) : 0; si.read_only = false; //!space;
si.free_space = 1; //space ? std::stoll(*space) : 0;
storage.emplace_back(std::move(si)); storage.emplace_back(std::move(si));
} }
} }