Skip to content

remove redeclaration of _onDestroy()#203

Merged
UshakovVasilii merged 1 commit intoUshakovVasilii:masterfrom
Valent-in:master
May 25, 2021
Merged

remove redeclaration of _onDestroy()#203
UshakovVasilii merged 1 commit intoUshakovVasilii:masterfrom
Valent-in:master

Conversation

@Valent-in
Copy link

_onDestroy() is already present in panelMenu.Button

https://github.com/GNOME/gnome-shell/blob/e6089c83e2993098814b7056e1c7f54e5dc06820/js/ui/panelMenu.js#L187

So this function is called twice. Put log("### something") into it to check. And proper Button._onDestroy() is not called at all. This leads to shell crash on screen lock.

Also spaming ~15 lines in journal on extension disable:

Source ID 2374 was not found when attempting to remove it
../../../gobject/gsignal.c:2641: instance '0x7f5880132080' has no handler with id '43421'

I'm not shure which solution is better... Mybe adding super._onDestroy() and removing connection to 'destroy' signal is more propper... But proposed renaming is simple and tested and works ok.

@UshakovVasilii UshakovVasilii merged commit 09db210 into UshakovVasilii:master May 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants