mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 16:02:00 +02:00
Ignore state change signals during app exit
This commit is contained in:
@@ -309,10 +309,14 @@ class ClapperPlayer extends PlayerBase
|
|||||||
{
|
{
|
||||||
this.state = state;
|
this.state = state;
|
||||||
|
|
||||||
if(this.quitOnStop && state === GstPlayer.PlayerState.STOPPED) {
|
if(this.quitOnStop) {
|
||||||
let root = player.widget.get_root();
|
if(state === GstPlayer.PlayerState.STOPPED) {
|
||||||
|
let root = player.widget.get_root();
|
||||||
|
if(root)
|
||||||
|
root.run_dispose();
|
||||||
|
}
|
||||||
|
|
||||||
return root.run_dispose();
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
let clapperWidget = player.widget.get_ancestor(Gtk.Grid);
|
let clapperWidget = player.widget.get_ancestor(Gtk.Grid);
|
||||||
|
Reference in New Issue
Block a user