Fix Remote Page's search showing No Results when a search is made when the system only has disabled remotes

This commit is contained in:
Heliguy
2024-09-01 23:37:42 -04:00
parent 45d56d5d42
commit ed9133b6e2

View File

@@ -212,6 +212,10 @@ class RemotesPage(Adw.NavigationPage):
total += visible
row.set_visible(visible)
if text == "":
self.stack.set_visible_child(self.content_page)
return
self.stack.set_visible_child(self.content_page if total > 0 else self.no_results)
def file_callback(self, chooser, result):