Skip to content

Commit fa570c2

Browse files
committed
Add version info to log
1 parent f7ea006 commit fa570c2

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

src/MainWindow.cpp

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,8 @@
4848
#include <QMessageBox>
4949
#include <QWhatsThis>
5050

51-
///TODO: --- REMOVE BEFORE RELEASE ---
52-
#define DISABLE_DIAGNOSTICS
53-
///TODO: -----------------------------
51+
#define STR_(x) #x
52+
#define STR(x) STR_(x)
5453

5554
using namespace std;
5655

@@ -66,6 +65,12 @@ MainWindow::MainWindow(QString exepath,
6665
// Prepare logger
6766
{
6867
Log::clear();
68+
#ifdef USE_PULSEAUDIO
69+
QString flavor = " (Pulseaudio flavor)";
70+
#else
71+
QString flavor = " (Pipewire flavor)";
72+
#endif
73+
Log::information("Application version: " + QString(STR(APP_VERSION)) + flavor);
6974
}
7075

7176
// Check if another instance is already running and switch to it if that's the case

0 commit comments

Comments
 (0)