preventing gen bouquets for an empty config

This commit is contained in:
DYefremov
2021-11-17 13:05:15 +03:00
parent 2d2a90542c
commit f7c6cd6908

View File

@@ -3364,6 +3364,10 @@ class Application(Gtk.Application):
self.show_error_message("Data loading in progress!")
return
if not len(self._bouquets_model):
self.show_error_message("No bouquets config is loaded. Load or create a new config!")
return
gen_bouquets(self._services_view, self._bouquets_view, self._main_window, g_type, self._s_type,
self.append_bouquet)