From f036fcbc0ff56dbab185d42c40f748e9c097bf22 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 24 Jan 2025 00:42:33 +0100 Subject: Add 'restart replay on save' option --- src/gui/GlobalSettingsPage.cpp | 10 +++++++--- src/gui/SettingsPage.cpp | 12 ++++++++++++ 2 files changed, 19 insertions(+), 3 deletions(-) (limited to 'src/gui') diff --git a/src/gui/GlobalSettingsPage.cpp b/src/gui/GlobalSettingsPage.cpp index d4a87c2..e3c09ff 100644 --- a/src/gui/GlobalSettingsPage.cpp +++ b/src/gui/GlobalSettingsPage.cpp @@ -24,11 +24,11 @@ extern "C" { #include #ifndef GSR_UI_VERSION -#define GSR_UI_VERSION "unknown" +#define GSR_UI_VERSION "Unknown" #endif #ifndef GSR_FLATPAK_VERSION -#define GSR_FLATPAK_VERSION "unknown" +#define GSR_FLATPAK_VERSION "Unknown" #endif namespace gsr { @@ -403,7 +403,11 @@ namespace gsr { auto list = std::make_unique(List::Orientation::VERTICAL); char str[128]; - snprintf(str, sizeof(str), "UI version: %s", GSR_UI_VERSION); + const std::string gsr_version = gsr_info->system_info.gsr_version.to_string(); + snprintf(str, sizeof(str), "GSR version: %s", gsr_version.c_str()); + list->add_widget(std::make_unique