Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drag bar relative problem #23

Merged
merged 5 commits into from
Mar 19, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
feat: window default position in center
  • Loading branch information
orangelckc committed Mar 19, 2023
commit 9466e40b3243938ce73124ef06b17857b02016c9
2 changes: 2 additions & 0 deletions src/stores/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ export const useSettingsStore = defineStore(
register(shortcutKeys.value.join('+'), () => {
// 如果窗口已经显示,就隐藏
if (!windowFocused.value) {
// 窗口打开时居中
appWindow.center()
appWindow.show()
appWindow.setFocus()
} else {
Expand Down