diff options
author | dec05eba <dec05eba@protonmail.com> | 2025-01-24 00:42:33 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2025-01-24 00:42:33 +0100 |
commit | f036fcbc0ff56dbab185d42c40f748e9c097bf22 (patch) | |
tree | 69eef4cacfae906c7866a3180d361b318408d83f /src/gui/GlobalSettingsPage.cpp | |
parent | 5b84d7421f44c8bc00999071f2b3d46d238a9946 (diff) |
Add 'restart replay on save' option
Diffstat (limited to 'src/gui/GlobalSettingsPage.cpp')
-rw-r--r-- | src/gui/GlobalSettingsPage.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
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 <mglpp/graphics/Text.hpp> #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>(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<Label>(&get_theme().body_font, str, get_color_theme().text_color)); + + snprintf(str, sizeof(str), "GSR-UI version: %s", GSR_UI_VERSION); list->add_widget(std::make_unique<Label>(&get_theme().body_font, str, get_color_theme().text_color)); if(inside_flatpak) { |