Skip to content

Commit

Permalink
fix: hide moonraker backups when "Hide backup files" is enabled (main…
Browse files Browse the repository at this point in the history
  • Loading branch information
meteyou authored Mar 8, 2024
1 parent 7ba16cc commit a3b5b33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/panels/Machine/ConfigFilesPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ export default class ConfigFilesPanel extends Mixins(BaseMixin, ThemeMixin) {
if (this.hideBackupFiles) {
const backupFileMatcher = /.*\/?printer-\d{8}_\d{6}\.cfg$/
files = files.filter((file) => !file.filename.match(backupFileMatcher))
files = files.filter((file) => !file.filename.match(backupFileMatcher) && !file.filename.endsWith('.bkp'))
}
return files
Expand Down

0 comments on commit a3b5b33

Please sign in to comment.