Skip to content

Commit

Permalink
fix(MediaViewer): page buttons (#608)
Browse files Browse the repository at this point in the history
  • Loading branch information
GeopJr authored Oct 16, 2023
1 parent 37aee12 commit ded2db4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions data/ui/views/media_viewer.ui
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@
<property name="visible">0</property>
<property name="valign">end</property>
<property name="halign">start</property>
<property name="margin_end">18</property>
<property name="margin_bottom">18</property>
<property name="margin-start">18</property>
<property name="margin-bottom">18</property>
<property name="child">
<object class="GtkBox">
<property name="orientation">horizontal</property>
Expand Down Expand Up @@ -127,8 +127,8 @@
<property name="visible">0</property>
<property name="valign">end</property>
<property name="halign">end</property>
<property name="margin_end">18</property>
<property name="margin_bottom">18</property>
<property name="margin-end">18</property>
<property name="margin-bottom">18</property>
<property name="child">
<object class="GtkBox">
<property name="orientation">horizontal</property>
Expand Down
3 changes: 1 addition & 2 deletions src/Views/MediaViewer.vala
Original file line number Diff line number Diff line change
Expand Up @@ -862,9 +862,8 @@ public class Tuba.Views.MediaViewer : Gtk.Widget, Gtk.Buildable, Adw.Swipeable {
private void on_carousel_n_pages_changed () {
bool has_more_than_1_item = carousel.n_pages > 1;

page_buttons_revealer.visible = has_more_than_1_item;
carousel_dots.visible = has_more_than_1_item;
prev_btn.visible = has_more_than_1_item;
next_btn.visible = has_more_than_1_item;
}

public void on_zoom_change () {
Expand Down

0 comments on commit ded2db4

Please sign in to comment.