Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
JunkuiZhang committed Jul 28, 2024
1 parent 5bd8bcc commit 695e831
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/gpui/src/platform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ pub(crate) use windows::*;

/// TODO:
pub fn check_single_instance() -> bool {
// TODO:
// we should let user to provide their own app identifier.
unsafe { CreateMutexW(None, true, &HSTRING::from("Local\\Zed-Editor-Instance")).log_err() };
let last_err = unsafe { GetLastError() };
last_err != ERROR_ALREADY_EXISTS
Expand Down

0 comments on commit 695e831

Please sign in to comment.