mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 15:52:10 +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;
|
||||
|
||||
if(this.quitOnStop && state === GstPlayer.PlayerState.STOPPED) {
|
||||
if(this.quitOnStop) {
|
||||
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);
|
||||
|
Reference in New Issue
Block a user