From 6f1e371d33c870b1c7bc1235a08024ff1095b86c Mon Sep 17 00:00:00 2001 From: Manuel Kamper Date: Fri, 2 Dec 2022 13:15:02 +0100 Subject: [PATCH] fixed #35 --- Mk0.Software.Bildduplikate/Main.cs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Mk0.Software.Bildduplikate/Main.cs b/Mk0.Software.Bildduplikate/Main.cs index e932da5..e8548e1 100644 --- a/Mk0.Software.Bildduplikate/Main.cs +++ b/Mk0.Software.Bildduplikate/Main.cs @@ -293,11 +293,6 @@ namespace Mk0.Software.Bildduplikate if (api) { ButtonAPILoad_Click(null, null); - if (Duplicates.Count > lineDup) - { - UIElementsVisible(false); - MessageBox.Show("Alle Duplikate von API abgearbeitet", "Fertig!", MessageBoxButtons.OK, MessageBoxIcon.Information); - } } else { @@ -653,7 +648,15 @@ namespace Mk0.Software.Bildduplikate total = int.Parse(resObj2.totalDuplicates); } - LoadDuplicates(line, true); + if (total == 0) + { + UIElementsVisible(false); + MessageBox.Show("Alle Duplikate von API abgearbeitet", "Fertig!", MessageBoxButtons.OK, MessageBoxIcon.Information); + } + else + { + LoadDuplicates(line, true); + } } } catch (Exception ex)