mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-12-04 02:38:05 -05:00
Check Moonraker Free Space Before Reporting Storage (#16903)
* Report storage on every Moonraker status push MachineObject sets the storage state on every push, first from "sdcard" and then from home_flag bits 8-9. The Moonraker agent sent neither, so each push reset the state to NO_SDCARD and the send dialog blocked with "Storage needs to be inserted before printing". Moonraker printers always have storage (virtual_sdcard), so report it in both places. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Check Moonraker Free Space Before Reporting Storage Report storage only when the gcodes root has free space, read from disk_usage in /server/files/directory?path=gcodes, instead of always reporting it. The status stream checks before the subscription and again from the read loop every 30 s. A check that fails counts as no storage. Move the Http::get boilerplate of the device info, status, object list and storage queries into one get_json helper. * Ask to Insert Storage or Free Up Space Before Printing A printer agent now also reports no storage when its disk is full, so the messages for that state say to free up space as well. The two "before send(ing) to printer" variants share one string. --------- Co-authored-by: dr-apple <15102858+dr-apple@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
9 files changed
+209
-129
No files matched your search
@@ -1829,7 +1829,7 @@ void SyncAmsInfoDialog::show_status(PrintDialogStatus status, std::vector<wxStri
|
||||
wxString msg_text = _L("Storage is not available or is in read-only mode.");
|
||||
update_print_status_msg(msg_text, true, true);
|
||||
} else if (status == PrintDialogStatus::PrintStatusNoSdcard) {
|
||||
wxString msg_text = _L("Storage needs to be inserted before printing.");
|
||||
wxString msg_text = _L("Insert storage or free up space before printing.");
|
||||
update_print_status_msg(msg_text, true, true);
|
||||
} else if (status == PrintDialogStatus::PrintStatusUnsupportedPrinter) {
|
||||
wxString msg_text;
|
||||
|
||||
Reference in new issue
Block a user