when in standby, don't ask for preview, just burn baby, burn
authorFraxinas <andreas.frisch@multimedia-labs.de>
Tue, 23 Jun 2009 18:03:33 +0000 (20:03 +0200)
committerFraxinas <andreas.frisch@multimedia-labs.de>
Tue, 23 Jun 2009 18:03:33 +0000 (20:03 +0200)
lib/python/Plugins/Extensions/DVDBurn/Process.py

index 9a37c14..74ffbde 100644 (file)
@@ -395,8 +395,12 @@ class PreviewTask(Task):
                if self.job.menupreview:
                        self.previewProject()
                else:
-                       from Tools import Notifications
-                       Notifications.AddNotificationWithCallback(self.previewCB, MessageBox, _("Do you want to preview this DVD before burning?"), timeout = 60, default = False)
+                       import Screens.Standby
+                       if Screens.Standby.inStandby:
+                               self.previewCB(False)
+                       else:
+                               from Tools import Notifications
+                               Notifications.AddNotificationWithCallback(self.previewCB, MessageBox, _("Do you want to preview this DVD before burning?"), timeout = 60, default = False)
 
        def abort(self):
                self.finish(aborted = True)