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)