make popup message on record configurable. Patch by CuNoah.
authorFelix Domke <tmbinc@elitedvb.net>
Thu, 4 Jun 2009 10:24:10 +0000 (12:24 +0200)
committerFelix Domke <tmbinc@elitedvb.net>
Thu, 4 Jun 2009 10:24:10 +0000 (12:24 +0200)
RecordTimer.py
data/setup.xml
lib/python/Components/UsageConfig.py

index e8b76e9..1f65038 100644 (file)
@@ -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.")))
 
                        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):
 
        # we have record_service as property to automatically subscribe to record service events
        def setRecordService(self, service):
index d8d5836..fe91ba2 100644 (file)
@@ -24,6 +24,7 @@
                        <item level="0" text="Margin before record (minutes)">config.recording.margin_before</item>
                        <item level="0" text="Margin after record">config.recording.margin_after</item>
                        <item level="0" text="Show blinking clock in display during recording">config.usage.blinking_display_clock_during_recording</item>
                        <item level="0" text="Margin before record (minutes)">config.recording.margin_before</item>
                        <item level="0" text="Margin after record">config.recording.margin_after</item>
                        <item level="0" text="Show blinking clock in display during recording">config.usage.blinking_display_clock_during_recording</item>
+                       <item level="2" text="Show Message when Recording starts">config.usage.show_message_when_recording_starts</item>
                        <item level="2" text="Load Length of Movies in Movielist">config.usage.load_length_of_movies_in_moviellist</item>
                        <item level="1" text="Show positioner movement">config.usage.showdish</item>
                        <item level="1" text="Enable multiple bouquets">config.usage.multibouquet</item>
                        <item level="2" text="Load Length of Movies in Movielist">config.usage.load_length_of_movies_in_moviellist</item>
                        <item level="1" text="Show positioner movement">config.usage.showdish</item>
                        <item level="1" text="Enable multiple bouquets">config.usage.multibouquet</item>
index 26138f2..6fcab8b 100644 (file)
@@ -58,6 +58,9 @@ def InitUsageConfig():
                ("5", "DVB-T/-S/-C") ])
 
        config.usage.blinking_display_clock_during_recording = ConfigYesNo(default = False)
                ("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):
        config.usage.load_length_of_movies_in_moviellist = ConfigYesNo(default = True)
        
        def TunerTypePriorityOrderChanged(configElement):