Skip to content

Commit

Permalink
Merge branch '3.0.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
pnieto committed May 19, 2022
2 parents 8cf8085 + 29c4c0c commit 46413b4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion galicaster/classui/recorderui.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
from gi.repository import Gtk, Gdk, GdkPixbuf, GLib
from gi.repository import Pango
import datetime
import time

from galicaster.utils.miscellaneous import get_footer
from galicaster.core import context
Expand Down Expand Up @@ -525,6 +526,9 @@ def create_drawing_areas(self, sources):

def event_change_mode(self, orig, old_state, new_state):
"""Handles the focus or the Rercording Area, launching messages when focus is recoverde"""

if not self.conf.get_boolean("basic", "admin"):
time.sleep(0.1)
if new_state == 0:
self.focus_is_active = True
self.recorder.mute_preview(False)
Expand All @@ -535,7 +539,6 @@ def event_change_mode(self, orig, old_state, new_state):
self.focus_is_active = False
self.recorder.mute_preview(True)


def change_mode(self, button):
"""GUI callback Launch the signal to change to another area"""
self.dispatcher.emit("action-view-change", 3) # FIXME use constant
Expand Down

0 comments on commit 46413b4

Please sign in to comment.