Skip to content

Commit

Permalink
use bringToTop instead of render(true)
Browse files Browse the repository at this point in the history
  • Loading branch information
esheyw committed Mar 10, 2024
1 parent 697b741 commit 3cdf5d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/keybinds.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function handleWindow(id) {
const existing = Object.values(ui.windows).find((w) => w.id === id);
if (existing) {
if (ui.activeWindow !== existing && setting("focus-before-close")) {
existing.render(true);
existing.bringToTop();
} else {
existing.close();
}
Expand Down

0 comments on commit 3cdf5d5

Please sign in to comment.