Skip to content

Commit

Permalink
Hide mirror button if webcam is not used
Browse files Browse the repository at this point in the history
  • Loading branch information
hongquan committed Jun 19, 2024
1 parent bd738a5 commit e6575e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cobang/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@ def on_stack_img_source_visible_child_notify(self, stack: Gtk.Stack, param: GObj
self.gst_pipeline.set_state(Gst.State.NULL)
toolbar.hide()
self.webcam_combobox.hide()
self.btn_mirror.hide()
self.btn_img_chooser.show()
self.grab_focus_on_event_box()
elif self.gst_pipeline:
Expand All @@ -431,6 +432,7 @@ def on_stack_img_source_visible_child_notify(self, stack: Gtk.Stack, param: GObj
self.gst_pipeline.set_state(Gst.State.PLAYING)
self.btn_img_chooser.hide()
self.webcam_combobox.show()
self.btn_mirror.show()
self.reset_image_placeholder()
toolbar.show()

Expand Down

0 comments on commit e6575e3

Please sign in to comment.