[feat] add sponsorship links to about and update dialogs

This commit is contained in:
dijunkun
2026-10-19 04:12:14 +08:00
parent a7adf342d7
commit fc5fe9ac61
9 changed files with 228 additions and 94 deletions
@@ -1726,6 +1726,15 @@ void GuiApplication::BindMainCallbacks(bool gallery_window) {
OpenUrl(latest && !latest->download_url.empty() ? latest->download_url
: "https://crossdesk.cn");
});
main->on_open_afdian_sponsor([this] {
OpenUrl("https://afdian.com/a/kunkundi");
});
main->on_open_github_sponsor([this] {
OpenUrl("https://github.com/sponsors/kunkundi");
});
main->on_open_kofi_sponsor([this] {
OpenUrl("https://ko-fi.com/kunkundi");
});
main->on_check_for_updates([this] {
update_checker_->RequestCheck();
SyncMainWindow();