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 e8b76e921aab631bc24aecf9111cda2b8b4b6d74..1f65038cd73dca936b2ceeffa6ea13b46f0a60b5 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 d8d583696156ae18dbe6427b1c651cb8b227f72d..fe91ba25ab6e688dc4f655b0f107542e2fe87a54 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 26138f200a72c21c8f8f56f8fcd73cbfdce9e654..6fcab8bccd615373a99a94fd4a603897678fc0fb 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):