From 70a40fae440f52cc60325b2714f229e132d69ca6 Mon Sep 17 00:00:00 2001 From: Helloman892 <1565516+Helloman892@users.noreply.github.com> Date: Tue, 5 Sep 2017 00:25:52 +0100 Subject: [PATCH] issue #14 commit for review (#50) --- source/main.c | 1 + source/themes.c | 1 + 2 files changed, 2 insertions(+) diff --git a/source/main.c b/source/main.c index 2a83ed2..64b9df3 100644 --- a/source/main.c +++ b/source/main.c @@ -217,6 +217,7 @@ int main(void) { draw_theme_install(SHUFFLE_INSTALL); shuffle_install(themes_list, theme_count); + shuffle_theme_count = 0; } } } diff --git a/source/themes.c b/source/themes.c index ccb7df5..ec336f1 100644 --- a/source/themes.c +++ b/source/themes.c @@ -397,6 +397,7 @@ Result shuffle_install(Theme_s *themes_list, int theme_count) if (themes_list[i].in_shuffle) { shuffle_themes[count++] = &themes_list[i]; + themes_list[i].in_shuffle = false; } } for (int i = 0; i < count; i++)