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
@ -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…
Reference in New Issue
Block a user