media-viewer: Unfullscreen when going back
This commit is contained in:
parent
93a45ae4fd
commit
0639b466c4
1 changed files with 5 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue