Skip to content

Commit

Permalink
Fix bugs and improve things
Browse files Browse the repository at this point in the history
  • Loading branch information
Himura2la committed Aug 17, 2018
1 parent 727e6c3 commit b3115aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/main.pyw
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ class MainWindow(wx.Frame):
self.prefer_audio = menu_file.Append(wx.ID_ANY, _("&Prefer No Video (fallback)"), kind=wx.ITEM_CHECK)
self.prefer_audio.Check(False)

self.end_show_on_bg = menu_file.Append(wx.ID_ANY, _("&End show on BG Music Start"), kind=wx.ITEM_CHECK)
self.end_show_on_bg.Check(False)

self.auto_zad = menu_file.Append(wx.ID_ANY, _("Auto Show &ZAD with Sound"), kind=wx.ITEM_CHECK)
self.auto_zad.Check(True)

Expand Down Expand Up @@ -234,7 +237,7 @@ class MainWindow(wx.Frame):
end_show_item = menu_play.Append(wx.ID_ANY, _("&End Show (Clear ZAD + Fade Out)\tEsc"))
no_show_item = menu_play.Append(wx.ID_ANY, _("&Black Screen\tAlt+F1"))
menu_play.AppendSeparator()
self.play_pause_bg_end_show_item = menu_play.Append(wx.ID_ANY, _("Play/Pause &Background + End Show\tF3"))
self.play_pause_bg_end_show_item = menu_play.Append(wx.ID_ANY, _("Play/Pause &Background (+ End Show)\tF3"))
self.play_pause_bg_end_show_item.Enable(False)
self.play_next_bg_item = menu_play.Append(wx.ID_ANY, _("Play &Next BG Track\tF4"))
self.play_next_bg_item.Enable(False)
Expand Down Expand Up @@ -1222,7 +1225,7 @@ class MainWindow(wx.Frame):

def play_pause_bg_end_show(self, e=None):
bg_started = self.play_pause_bg()
if bg_started:
if bg_started and self.end_show_on_bg.IsChecked():
self.end_show()

# -------------------------------------------------- Text Window --------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/projector.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def update_time(self, e=None):

if self.time_left < timedelta(seconds=1):
def ui_upd():
self.switch_to_images()
self.proj_window.switch_to_images()
self.main_window.clear_zad(status=u"Poehali !!!")
wx.CallAfter(ui_upd)
return
Expand Down

0 comments on commit b3115aa

Please sign in to comment.