mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-15 01:05:58 +08:00
Turn off read only checks. Needs to be redone.
This commit is contained in:
parent
81fa7a83b9
commit
5f38f20073
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user