Browse Source

add comments

CPP-GTK4
yggverse 2 months ago
parent
commit
330252f8e0
  1. 1
      src/app/browser/header/main/subtitle.cpp
  2. 2
      src/app/browser/header/main/title.cpp

1
src/app/browser/header/main/subtitle.cpp

@ -37,5 +37,6 @@ void Subtitle::set(
TEXT TEXT
); );
// Use GTK3 header behaviour
if (get_text().empty()) hide(); else show(); if (get_text().empty()) hide(); else show();
} }

2
src/app/browser/header/main/title.cpp

@ -34,9 +34,11 @@ Title::~Title() = default;
void Title::set( void Title::set(
const Glib::ustring & TEXT const Glib::ustring & TEXT
) { ) {
// Append app name postfix
set_text( set_text(
TEXT.empty() || TEXT == DEFAULT_TEXT ? DEFAULT_TEXT : TEXT + " - " + DEFAULT_TEXT TEXT.empty() || TEXT == DEFAULT_TEXT ? DEFAULT_TEXT : TEXT + " - " + DEFAULT_TEXT
); );
// Use GTK3 header behaviour
if (get_text().empty()) hide(); else show(); if (get_text().empty()) hide(); else show();
} }
Loading…
Cancel
Save