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

Windows平台新增函数 #8

Merged
merged 5 commits into from
Mar 31, 2022

Conversation

yunxiuGona
Copy link

Windows平台新增原函数
CheckForUpdatesWithoutUI
静默检查更新

CheckForUpdatesWithoutUI
静默检查更新
@lijy91
Copy link
Member

lijy91 commented Mar 30, 2022

我之前尝试过这个方法,但似乎不会触发更新,更新信息会在事件中响应?

@yunxiuGona
Copy link
Author

经过测试是可以执行的,具体表现是
检查更新过程中的Dialog不会显示
若无版本更新不会有任何对话框提示
若存在新版本,则会弹出提醒更新对话框

image

@@ -25,7 +26,11 @@ void AutoUpdater::SetFeedURL(std::string feedURL) {
}

void AutoUpdater::CheckForUpdates() {
win_sparkle_check_update_with_ui();
win_sparkle_check_update_with_ui();
}
Copy link
Member

Choose a reason for hiding this comment

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

这里修改了不应该修改的代码,请将代码按照代码风格(.clang-format)进行格式化

wangyunxiu added 3 commits March 31, 2022 10:20
功能:静默检查更新,只有在需要更新时才会弹出Dialog
@lijy91 lijy91 merged commit 028c2b6 into leanflutter:main Mar 31, 2022
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