Skip to content

Commit fba182a

Browse files
committed
ui: Show current/latest version in updater, link to release notes
1 parent ec7f5e4 commit fba182a

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

ui/xui/update.cc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,19 @@ void AutoUpdateWindow::Draw()
8787
ImGui::Text("%s", status_msg[updater.get_status()]);
8888
}
8989

90+
if (updater.is_update_available()) {
91+
ImGui::Dummy(ImVec2(0.0f, ImGui::GetStyle().WindowPadding.y));
92+
93+
ImGui::Text("Current version: %s", xemu_version);
94+
ImGui::Text("Latest version: %s", updater.get_release_version().c_str());
95+
96+
ImGui::Dummy(ImVec2(0.0f, ImGui::GetStyle().ItemSpacing.y));
97+
98+
if (ImGui::SmallButton("Release notes...")) {
99+
SDL_OpenURL(updater.get_release_url().c_str());
100+
}
101+
}
102+
90103
if (updater.is_updating()) {
91104
ImGui::Dummy(ImVec2(0.0f, ImGui::GetStyle().ItemSpacing.y));
92105
ImGui::ProgressBar(updater.get_update_progress_percentage()/100.0f,

0 commit comments

Comments
 (0)