Skip to content

Commit

Permalink
chore(palette): Rename Open to isOpen to disambiguate open()
Browse files Browse the repository at this point in the history
  • Loading branch information
Otard95 committed Oct 7, 2024
1 parent 3e8d6a7 commit 2b006da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ async function init() {
keybinds.addKeybind(
'<esc>',
preventDefault => {
if (palette.Open) preventDefault()
if (palette.isOpen) preventDefault()
palette.close()
},
{ preventDefault: false }
Expand Down
2 changes: 1 addition & 1 deletion src/palette.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default class Palette {
if (paletteEl) paletteEl.remove()
}

public get Open() {
public get isOpen() {
return this.show
}

Expand Down

0 comments on commit 2b006da

Please sign in to comment.