Skip to content

Fix maxBackups=0 to fully disable automatic backups#218

Open
ewgdg wants to merge 1 commit intogfxholo:mainfrom
ewgdg:fix-disable-backups-when-zero
Open

Fix maxBackups=0 to fully disable automatic backups#218
ewgdg wants to merge 1 commit intogfxholo:mainfrom
ewgdg:fix-disable-backups-when-zero

Conversation

@ewgdg
Copy link

@ewgdg ewgdg commented Feb 19, 2026

Summary

  • Make maxBackups = 0 fully disable automatic backups.
  • Keep backup behavior unchanged for values greater than 0.

Problem

  • The settings UI exposes 0 as None.
  • Before this change, data.json.backup1 could still be created even when maxBackups was set to 0.

Fix

  • Add an early return in saveBackup() when this.settings.maxBackups <= 0.

Result

  • maxBackups > 0: existing rotation behavior remains unchanged.
  • maxBackups = 0: no automatic backup creation or rotation.

Validation

  • npm run build

@ewgdg ewgdg force-pushed the fix-disable-backups-when-zero branch from 447f8fe to ad4c173 Compare February 19, 2026 08:14
@gfxholo gfxholo added the bug Something isn't working label Feb 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants