media-viewer: Unfullscreen when going back

This commit is contained in:
Kévin Commaille 2022-01-24 10:39:53 +01:00 committed by Julian Sparber
parent 93a45ae4fd
commit 0639b466c4

View file

@ -41,6 +41,11 @@ mod imp {
klass.install_action("media-viewer.close", None, move |obj, _, _| {
let priv_ = imp::MediaViewer::from_instance(obj);
if obj.fullscreened() {
obj.activate_action("win.toggle-fullscreen", None).unwrap();
}
if let Some(stream) = priv_
.media
.child()