-
-
Notifications
You must be signed in to change notification settings - Fork 531
fix: disable Moonraker database management while printing #1741
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -27,6 +27,7 @@ | |||||
| v-bind="attrs" | ||||||
| icon | ||||||
| :loading="hasWait(`${$waits.onDatabaseRestore}/${item}`)" | ||||||
| :disabled="printerPrinting" | ||||||
| @click="handleRestoreBackup(item)" | ||||||
| v-on="on" | ||||||
| > | ||||||
|
|
@@ -77,6 +78,7 @@ | |||||
| class="mb-2" | ||||||
| color="primary" | ||||||
| :loading="hasWait($waits.onDatabaseCompact)" | ||||||
| :disabled="printerPrinting" | ||||||
|
||||||
| :disabled="printerPrinting" | |
| :disabled="printerBusy" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moonraker currently only disables this if the printer is printing, so we will keep this behavior as is.
Copilot
AI
Nov 16, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider using printerBusy instead of printerPrinting for the same reasons as the restore operation - creating a database backup is an intensive operation that could interfere with a paused print.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not necessary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider using
printerBusyinstead ofprinterPrintingfor these database operations. TheprinterBusygetter includes printing, paused, and busy states, which would be more appropriate since:Using
printerBusywould provide better protection for users who have temporarily paused their prints.Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moonraker currently only disables this if the printer is printing, so we will keep this behavior as is.
Socket disconnect only affects Moonraker, Klipper will be unaffected.