From a4514ebb2bf8f547e05df94346a58cf818e3e468 Mon Sep 17 00:00:00 2001 From: DYefremov Date: Sat, 3 Mar 2018 20:55:08 +0300 Subject: [PATCH] fix tv counter --- app/ui/main_app_window.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/ui/main_app_window.py b/app/ui/main_app_window.py index d7333250..25afc68c 100644 --- a/app/ui/main_app_window.py +++ b/app/ui/main_app_window.py @@ -24,9 +24,14 @@ from .service_details_dialog import ServiceDetailsDialog class MainAppWindow: + _TV_TYPES = ("TV", "TV (HD)", "TV (UHD)", "TV (H264)") + _SERVICE_LIST_NAME = "services_list_store" + _FAV_LIST_NAME = "fav_list_store" + _BOUQUETS_LIST_NAME = "bouquets_tree_store" + # dynamically active elements depending on the selected view _SERVICE_ELEMENTS = ("copy_tool_button", "to_fav_tool_button", "copy_menu_item", "services_to_fav_move_popup_item", "services_edit_popup_item", "services_copy_popup_item", "services_picon_popup_item") @@ -815,7 +820,7 @@ class MainAppWindow: for ch in self.__services.values(): ch_type = ch.service_type - if ch_type in ("TV", "TV (HD)", "TV (UHD)"): + if ch_type in self._TV_TYPES: tv_count += 1 elif ch_type == "Radio": radio_count += 1