diff options
| author | 2021-10-03 00:27:08 -0700 | |
|---|---|---|
| committer | 2021-10-03 00:27:08 -0700 | |
| commit | e209fff3740a34f0fa9d5ef03d207eb86b401574 (patch) | |
| tree | cd49095264fbec66ed36c18455718ea994bc8d73 /src | |
| parent | Merge pull request #7113 from Morph1984/no-log-ip-addr (diff) | |
| parent | main: Don't add an extra separator when the title version is absent (diff) | |
| download | yuzu-e209fff3740a34f0fa9d5ef03d207eb86b401574.tar.gz yuzu-e209fff3740a34f0fa9d5ef03d207eb86b401574.tar.xz yuzu-e209fff3740a34f0fa9d5ef03d207eb86b401574.zip | |
Merge pull request #7111 from lat9nq/no-title-bar-version
main: Don't add an extra separator when the title version is absent
Diffstat (limited to 'src')
| -rw-r--r-- | src/yuzu/main.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 0bd0c5b04..552c2cc63 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp | |||
| @@ -2920,8 +2920,13 @@ void GMainWindow::UpdateWindowTitle(std::string_view title_name, std::string_vie | |||
| 2920 | if (title_name.empty()) { | 2920 | if (title_name.empty()) { |
| 2921 | setWindowTitle(QString::fromStdString(window_title)); | 2921 | setWindowTitle(QString::fromStdString(window_title)); |
| 2922 | } else { | 2922 | } else { |
| 2923 | const auto run_title = | 2923 | const auto run_title = [window_title, title_name, title_version, gpu_vendor]() { |
| 2924 | fmt::format("{} | {} | {} | {}", window_title, title_name, title_version, gpu_vendor); | 2924 | if (title_version.empty()) { |
| 2925 | return fmt::format("{} | {} | {}", window_title, title_name, gpu_vendor); | ||
| 2926 | } | ||
| 2927 | return fmt::format("{} | {} | {} | {}", window_title, title_name, title_version, | ||
| 2928 | gpu_vendor); | ||
| 2929 | }(); | ||
| 2925 | setWindowTitle(QString::fromStdString(run_title)); | 2930 | setWindowTitle(QString::fromStdString(run_title)); |
| 2926 | } | 2931 | } |
| 2927 | } | 2932 | } |