Skip to content

Commit

Permalink
Fix #118
Browse files Browse the repository at this point in the history
  • Loading branch information
aunetx committed Sep 17, 2021
1 parent e327b4e commit bbaf6b1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/dash.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var DashBlur = class DashBlur {
this._log("removing blur from dash");

if (Main.overview.dash.constructor.name == "Dash") {
if (!Main.screenShield.locked) {
if (Main.screenShield && !Main.screenShield.locked) {
try {
Main.overview.dash.get_child_at_index(0).style = null;
} catch (e) {
Expand Down
2 changes: 1 addition & 1 deletion src/overview.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ var OverviewBlur = class OverviewBlur {

// connect to monitors change
this.connections.connect(Main.layoutManager, 'monitors-changed', () => {
if (!Main.screenShield.locked) {
if (Main.screenShield && !Main.screenShield.locked) {
this._log("changed monitors");
this.update_backgrounds();
}
Expand Down
2 changes: 1 addition & 1 deletion src/panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ var PanelBlur = class PanelBlur {

// connect to monitors change
this.connections.connect(Main.layoutManager, 'monitors-changed', () => {
if (!Main.screenShield.locked) {
if (Main.screenShield && !Main.screenShield.locked) {
this.update_wallpaper(this.prefs.STATIC_BLUR.get());
this.update_size(this.prefs.STATIC_BLUR.get());
}
Expand Down

0 comments on commit bbaf6b1

Please sign in to comment.