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

refactor(single-instance): refactor app single instance check #435

Closed
wants to merge 2 commits into from

Conversation

4o3F
Copy link
Collaborator

@4o3F 4o3F commented Feb 14, 2024

Should fix #379 and #373 for Windows and Linux, MacOS still need more work

let verge = { Config::verge().latest().language.clone().unwrap() };
rust_i18n::set_locale(verge.as_str());
Ok(())
})
.system_tray(SystemTray::new())
.setup(|app| {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

为什么会有两个 Setup

rust_i18n::set_locale(verge.as_str());
// Panic Hook to show a panic dialog and save logs
let default_panic = std::panic::take_hook();
std::panic::set_hook(Box::new(move |info| {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

从这里 Setup 会影响捕获 Tauri 自身的 bug 吗?
譬如:#369

@4o3F 4o3F closed this Feb 27, 2024
@4o3F 4o3F deleted the single-instance branch February 27, 2024 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

启动程序报错,以一种访问权限不允许的方式做了一个访问套接字的尝试
2 participants