Skip to content

Commit

Permalink
✨ support #371
Browse files Browse the repository at this point in the history
  • Loading branch information
layyback committed Jul 18, 2024
1 parent 0578c7c commit 4a2ca33
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/main/browsers/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default () => {
`window.rubick && window.rubick.hooks && typeof window.rubick.hooks.onShow === "function" && window.rubick.hooks.onShow()`
);
// versonHandler.checkUpdate();
// win.webContents.openDevTools();
win.webContents.openDevTools();
});

win.on('hide', () => {
Expand Down
11 changes: 5 additions & 6 deletions src/renderer/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,13 @@ const changeIndex = (index) => {
currentSelect.value = currentSelect.value + index;
return;
}
if (
currentSelect.value + index > options.value.length - 1 ||
currentSelect.value + index < 0
) {
if (currentSelect.value + index > options.value.length - 1) {
currentSelect.value = 0;
return;
} else if (currentSelect.value + index < 0) {
currentSelect.value = options.value.length - 1;
} else {
currentSelect.value = currentSelect.value + index;
}
currentSelect.value = currentSelect.value + index;
};
const openMenu = (ext) => {
Expand Down

0 comments on commit 4a2ca33

Please sign in to comment.