Skip to content

Commit

Permalink
Fixed bug where deleting a bad repo could send you to an empty view
Browse files Browse the repository at this point in the history
  • Loading branch information
Cleover committed Dec 7, 2023
1 parent 122b1bf commit 1ed9c1b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions TrollApps/TrollApps/SourcesView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,10 @@ struct SourcesView: View {

repos = repoManager.ReposData
badRepos = repoManager.BadRepos

if badRepos.count == 0 {
showFailed = false
}
}, label:
{
Text("Delete Repo")
Expand Down

0 comments on commit 1ed9c1b

Please sign in to comment.