mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
extensionSystem: Unset stylesheet file reference when unloaded
We must remove the GFile reference from the representing object when an extension has been unloaded as this won't be used anymore later (e.g. as cached ref).
This commit is contained in:
parent
30cb2127a1
commit
72f5802be9
1 changed files with 1 additions and 0 deletions
|
|
@ -76,6 +76,7 @@ function disableExtension(uuid) {
|
|||
if (extension.stylesheet) {
|
||||
let theme = St.ThemeContext.get_for_stage(global.stage).get_theme();
|
||||
theme.unload_stylesheet(extension.stylesheet);
|
||||
delete extension.stylesheet;
|
||||
}
|
||||
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue