summaryrefslogtreecommitdiff
path: root/plugins/Db_autobackups
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-10-11 13:13:42 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-10-11 13:13:42 +0300
commitf40b2ce583f05b0756c4552f2e46535bea2c0c39 (patch)
treee4422692ababe4516494401cfd4580713d159637 /plugins/Db_autobackups
parent7a92c51ee750eac2b7e1c1fe33d020186fe8595a (diff)
fixes #3729 (Db_autobackuper: опция "количество резервных копий" недоступна при отключённом автоматическом резервировании, но влияет на ручные резервные копии)
Diffstat (limited to 'plugins/Db_autobackups')
-rw-r--r--plugins/Db_autobackups/src/options.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/plugins/Db_autobackups/src/options.cpp b/plugins/Db_autobackups/src/options.cpp
index 86826b68e1..01d41ea262 100644
--- a/plugins/Db_autobackups/src/options.cpp
+++ b/plugins/Db_autobackups/src/options.cpp
@@ -9,15 +9,12 @@ class COptionsDlg : public CDlgBase
void SetDialogState()
{
auto *periodText = FindControl(IDC_ED_PERIOD);
- auto *numBackupsText = FindControl(IDC_ED_NUMBACKUPS);
bool bEnabled = m_enabled.IsChecked();
m_backupOnStart.Enable(bEnabled);
m_backupOnExit.Enable(bEnabled);
m_backupPeriodic.Enable(bEnabled);
m_nextTime.Enable(bEnabled);
- numBackupsText->Enable(bEnabled);
- m_numBackups.Enable(bEnabled);
m_backup.Enable(bEnabled);
m_folder.Enable(bEnabled);
m_browseFolder.Enable(bEnabled);
@@ -179,8 +176,6 @@ public:
m_backupPeriodic.SetState(g_plugin.backup_types & BT_PERIODIC ? TRUE : FALSE);
onChange_Period(0);
- m_numBackups.SetPosition(g_plugin.num_backups);
-
m_periodType.AddString(TranslateT("days"));
m_periodType.AddString(TranslateT("hours"));
m_periodType.AddString(TranslateT("minutes"));