From d34ac58e73b898571473a30514338f6fed97b2a2 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Fri, 14 May 2021 16:00:29 +0200 Subject: [PATCH] use placeholder for device and profile in tabs as well --- owrx/controllers/settings/sdr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/owrx/controllers/settings/sdr.py b/owrx/controllers/settings/sdr.py index 40d92a3..40c6185 100644 --- a/owrx/controllers/settings/sdr.py +++ b/owrx/controllers/settings/sdr.py @@ -138,7 +138,7 @@ class SdrFormController(SettingsFormController, metaclass=ABCMeta): """.format( device_link="{}settings/sdr/{}".format(self.get_document_root(), quote(self.device_id)), - device_name=self.device["name"], + device_name=self.device["name"] if self.device["name"] else "[Unnamed device]", device_active="active" if self.isDeviceActive() else "", new_profile_active="active" if self.isNewProfileActive() else "", new_profile_link="{}settings/sdr/{}/newprofile".format(self.get_document_root(), quote(self.device_id)), @@ -151,7 +151,7 @@ class SdrFormController(SettingsFormController, metaclass=ABCMeta): profile_link="{}settings/sdr/{}/profile/{}".format( self.get_document_root(), quote(self.device_id), quote(profile_id) ), - profile_name=profile["name"], + profile_name=profile["name"] if profile["name"] else "[Unnamed profile]", profile_active="active" if self.isProfileActive(profile_id) else "", ) for profile_id, profile in self.device["profiles"].items()