From: Felix Domke Date: Thu, 4 Jun 2009 10:24:10 +0000 (+0200) Subject: make popup message on record configurable. Patch by CuNoah. X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=commitdiff_plain;h=f4e60c14b94fe0155aba9addc908a0b2860b3cd8 make popup message on record configurable. Patch by CuNoah. --- diff --git a/RecordTimer.py b/RecordTimer.py index e8b76e9..1f65038 100644 --- a/RecordTimer.py +++ b/RecordTimer.py @@ -356,8 +356,8 @@ class RecordTimerEntry(timer.TimerEntry, object): if self.dirnameHadToFallback: text = '\n'.join((text, _("Please note that the previously selected media could not be accessed and therefore the default directory is being used instead."))) - # maybe this should be configurable? - Notifications.AddPopup(text = text, type = MessageBox.TYPE_INFO, timeout = 3) + if config.usage.show_message_when_recording_starts.value: + Notifications.AddPopup(text = text, type = MessageBox.TYPE_INFO, timeout = 3) # we have record_service as property to automatically subscribe to record service events def setRecordService(self, service): diff --git a/data/setup.xml b/data/setup.xml index d8d5836..fe91ba2 100644 --- a/data/setup.xml +++ b/data/setup.xml @@ -24,6 +24,7 @@ config.recording.margin_before config.recording.margin_after config.usage.blinking_display_clock_during_recording + config.usage.show_message_when_recording_starts config.usage.load_length_of_movies_in_moviellist config.usage.showdish config.usage.multibouquet diff --git a/lib/python/Components/UsageConfig.py b/lib/python/Components/UsageConfig.py index 26138f2..6fcab8b 100644 --- a/lib/python/Components/UsageConfig.py +++ b/lib/python/Components/UsageConfig.py @@ -58,6 +58,9 @@ def InitUsageConfig(): ("5", "DVB-T/-S/-C") ]) config.usage.blinking_display_clock_during_recording = ConfigYesNo(default = False) + + config.usage.show_message_when_recording_starts = ConfigYesNo(default = True) + config.usage.load_length_of_movies_in_moviellist = ConfigYesNo(default = True) def TunerTypePriorityOrderChanged(configElement):