imageView: Remove expression for fullscreen icon

This commit is contained in:
Sophie Herold 2023-12-04 18:22:47 +01:00
parent fceec31971
commit 33bcd4a7ac
4 changed files with 16 additions and 15 deletions

View file

@ -290,6 +290,7 @@ mod imp {
);
obj.on_current_page_changed();
obj.on_fullscreen_changed();
self.image_view.connect_current_page_notify(
glib::clone!(@weak obj => move |_| obj.on_current_page_changed()),
@ -1002,6 +1003,10 @@ impl LpWindow {
}
fn on_fullscreen_changed(&self) {
self.imp()
.image_view
.on_fullscreen_changed(self.is_fullscreened());
self.update_headerbar_style();
if !self.is_fullscreened() {