From 6e6d294503a0d88daa0296b0bb8950476f7b52e6 Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Thu, 26 Oct 2023 18:00:16 +0600 Subject: [PATCH] Fixes --- source/ubl-settings-logging.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/ubl-settings-logging.c b/source/ubl-settings-logging.c index 5b01d01..a4d8b0e 100644 --- a/source/ubl-settings-logging.c +++ b/source/ubl-settings-logging.c @@ -422,17 +422,17 @@ void on_logrotate_save(GtkWidget *self, dictionary *dict){ switch (active){ case 0: period = "hourly"; break; - case 2: period = "daily"; + case 1: period = "daily"; break; - case 3: period = "weekly"; + case 2: period = "weekly"; int weekday = gtk_combo_box_get_active(GTK_COMBO_BOX(window->RotationPeriodAdditionalCombo)); weekday++; if (weekday==7) weekday=0; period = yon_char_unite(period,", ",yon_char_from_int(weekday),NULL); break; - case 4: period = "monthly"; + case 3: period = "monthly"; break; - case 5: period = "yearly"; + case 4: period = "yearly"; break; } }