fix(windows): 작업 표시줄 앱 이름 클릭 시 중복 인스턴스 실행 방지#42
Closed
Conversation
Windows 전역 Named Mutex를 사용하여 단일 인스턴스를 보장합니다. 이미 실행 중인 경우 기존 창을 활성화하고 새 프로세스를 종료합니다. - acquire_single_instance_lock(): Global\DmNote_SingleInstance 뮤텍스 생성 - focus_existing_window_and_exit(): FindWindowW로 기존 창 탐색 후 포그라운드 전환 windows 0.61.3 API 호환성에 맞게 구현 (bool, PCWSTR, HWND.0.is_null() 패턴) Fixes #41 Co-authored-by: 이시훈 <lee-sihun@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #41
문제
Windows 작업 표시줄 아이콘 우클릭 → 앱 이름(DM NOTE) 클릭 시 새 인스턴스가 생성똘는 문제를 수정합니다.
해결 방법
Windows 전역 Named Mutex를 사용하여 단일 인스턴스를 보장합니다.
Generated with Claude Code