feature get flutter web resource from server.

This commit is contained in:
alves
2025-12-31 18:21:17 +08:00
parent d82cca2f50
commit 6940b359a0
7 changed files with 150 additions and 49 deletions

View File

@@ -2579,10 +2579,10 @@ bool GUI_App::on_init_inner()
dlg.ShowModal();
});
Bind(EVT_NO_PRESET_UPDATE, [this](const wxCommandEvent& evt) {
wxString msg = _L("This is the newest version.");
InfoDialog dlg(nullptr, _L("Info"), msg);
dlg.ShowModal();
Bind(EVT_NO_PRESET_UPDATE, [this](const wxCommandEvent& evt) {
wxString msg = _L("This is the newest version.");
InfoDialog dlg(nullptr, _L("Info"), msg);
dlg.ShowModal();
});
}
else {
@@ -4722,6 +4722,12 @@ void maybe_attach_updater_signature(Http& http, const std::string& canonical_que
} // namespace
void GUI_App::check_web_version()
{
if (preset_updater != nullptr)
preset_updater->sync_web_async();
}
void GUI_App::check_preset_version()
{
if (preset_updater != nullptr)