Skip to content

Commit

Permalink
fix: work with uninstalled Pop Shop
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemial authored and jackpot51 committed Dec 14, 2021
1 parent 914a05e commit 9bc4666
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions applications.js
Original file line number Diff line number Diff line change
Expand Up @@ -1065,10 +1065,14 @@ var CosmicAppsDialog = GObject.registerClass({
theme.unload_stylesheet(lightStylesheet);

if (this.is_dark()) {
this.resultsView._available_spinner.clear_effects();
if (this.resultsView._available_spinner) {
this.resultsView._available_spinner.clear_effects();
}
theme.load_stylesheet(darkStylesheet);
} else {
this.resultsView._available_spinner.add_effect(new Shell.InvertLightnessEffect());
if (this.resultsView._available_spinner) {
this.resultsView._available_spinner.add_effect(new Shell.InvertLightnessEffect());
}
theme.load_stylesheet(lightStylesheet);
}

Expand Down

0 comments on commit 9bc4666

Please sign in to comment.