Merge pull request #2275 from RetroPooh/stat-wintitle-nodename

statistics - add node name in window title
This commit is contained in:
csoler 2021-02-02 17:55:47 +01:00 committed by GitHub
commit d0014f268c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -186,6 +186,11 @@ public:
ToasterDisable *toasterDisableInstance();
SysTrayStatus *sysTrayStatusInstance();
QString get_nameAndLocation()
{
return nameAndLocation;
}
static bool hiddenmode;
public slots:

View File

@ -36,6 +36,7 @@
#include <gui/settings/rsharesettings.h>
#include "gui/common/FilesDefs.h"
#include <gui/MainWindow.h>
#include <gui/statistics/TurtleRouterStatistics.h>
#include <gui/statistics/GlobalRouterStatistics.h>
#include <gui/statistics/GxsIdStatistics.h>
@ -105,6 +106,7 @@ StatisticsWindow::StatisticsWindow(QWidget *parent) :
int toolSize = Settings->getToolButtonSize();
ui->toolBar->setToolButtonStyle(Settings->getToolButtonStyle());
ui->toolBar->setIconSize(QSize(toolSize,toolSize));
setWindowTitle("RetroShare Statistics - " + MainWindow::getInstance()->get_nameAndLocation());
}
StatisticsWindow::~StatisticsWindow()