mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
iconGrid: Don't recreate StIcons on icon theme changes
Now that StIcon updates its texture automatically on icon theme changes, we only have to recreate icon actors that aren't StIcons. (This probably only applies to the folder icon in the app grid where the sub-icons do use St.Icon, but making that assumption feels dodgy with an API as generic as `createIcon()`) Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3141>
This commit is contained in:
parent
671c242958
commit
8a1f44f10a
1 changed files with 3 additions and 1 deletions
|
|
@ -156,7 +156,9 @@ class BaseIcon extends Shell.SquareBin {
|
|||
}
|
||||
|
||||
_onIconThemeChanged() {
|
||||
this._createIconTexture(this.iconSize);
|
||||
// St.Icon updates automatically
|
||||
if (!(this.icon instanceof St.Icon))
|
||||
this._createIconTexture(this.iconSize);
|
||||
}
|
||||
|
||||
animateZoomOut() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue