Skip to content

Commit

Permalink
fix: refresh group thumb when switch between dark & light mode
Browse files Browse the repository at this point in the history
  • Loading branch information
117649 committed Apr 25, 2024
1 parent 0f62ccc commit d27f6d9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions resource/modules/UI.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,12 @@ this.UI = {

useDarkTheme: function() {
toggleAttribute(document.body, 'darktheme', brightText.useDarkTheme());

// Refresh group thumb
for (let groupItem of GroupItems) {
groupItem._lastThumb = null;
if (this.single) groupItem.updateThumb(true);
}
},

goToPreferences: function(aOptions) {
Expand Down

0 comments on commit d27f6d9

Please sign in to comment.