Skip to content

Commit

Permalink
38 gnome extension manager showing error (#39)
Browse files Browse the repository at this point in the history
* Added basic debug logging for flipindicator states.

* Update extension.js

Add additional check for flipindicator being undefined

* Fix missed refactor of toggle_rotation_lock

* Revert "Added basic debug logging for flipindicator states."

This reverts commit 4b12012.

* #38 Fix ESLint equivalence check
  • Loading branch information
shyzus authored Aug 29, 2024
1 parent b6aee70 commit e82e946
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions screen-rotate@shyzus.github.io/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export default class ScreenAutoRotateExtension extends Extension {
}

_remove_manual_flip() {
if (this.flipIndicator !== null) {
if (this.flipIndicator !== null && this.flipIndicator !== undefined) {
this.flipIndicator.destroy();
this.flipIndicator = null;
}
Expand Down Expand Up @@ -143,7 +143,7 @@ export default class ScreenAutoRotateExtension extends Extension {
_orientation_lock_changed() {
let locked = this._orientation_settings.get_boolean(ORIENTATION_LOCK_KEY);
if (this._state === locked) {
this.toggle();
this.toggle_rotation_lock();
}
}

Expand Down

0 comments on commit e82e946

Please sign in to comment.