add chatterino nightly version string to nightly builds

This commit is contained in:
Rasmus Karlsson 2018-10-01 21:44:23 +02:00
parent cd571a7e25
commit c872db3d9f

View file

@ -306,10 +306,18 @@ void Window::addShortcuts()
[this] { this->notebook_->removeCurrentPage(); }); [this] { this->notebook_->removeCurrentPage(); });
} }
#define UGLYMACROHACK1(s) #s
#define UGLYMACROHACK(s) UGLYMACROHACK1(s)
void Window::onAccountSelected() void Window::onAccountSelected()
{ {
auto user = getApp()->accounts->twitch.getCurrent(); auto user = getApp()->accounts->twitch.getCurrent();
#ifdef CHATTERINO_NIGHTLY_VERSION_STRING
auto windowTitleEnd = QString(" - Chatterino Nightly " CHATTERINO_VERSION " (" UGLYMACROHACK(CHATTERINO_NIGHTLY_VERSION_STRING) ")");
#else
auto windowTitleEnd = QString(" - Chatterino Beta " CHATTERINO_VERSION); auto windowTitleEnd = QString(" - Chatterino Beta " CHATTERINO_VERSION);
#endif
if (user->isAnon()) { if (user->isAnon()) {
this->setWindowTitle("Not logged in" + windowTitleEnd); this->setWindowTitle("Not logged in" + windowTitleEnd);