Commit 4a5c220f authored by Andreas Traczyk's avatar Andreas Traczyk

mainwindow: remove useless settings access under window thumbnail

Change-Id: I4f7336401c1e2ecb7488691090edffda2cdd5df4
parent df38b4eb
...@@ -275,8 +275,6 @@ main(int argc, char* argv[]) ...@@ -275,8 +275,6 @@ main(int argc, char* argv[])
QFontDatabase::addApplicationFont(":/images/FontAwesome.otf"); QFontDatabase::addApplicationFont(":/images/FontAwesome.otf");
MainWindow::instance().createThumbBar();
QSettings settings("jami.net", "Jami"); QSettings settings("jami.net", "Jami");
if (not startMinimized) { if (not startMinimized) {
if (settings.value(SettingsKey::hasRun) == 0) { if (settings.value(SettingsKey::hasRun) == 0) {
......
...@@ -269,24 +269,6 @@ void MainWindow::notificationClicked() ...@@ -269,24 +269,6 @@ void MainWindow::notificationClicked()
} }
} }
void MainWindow::createThumbBar()
{
#ifdef Q_OS_WIN
QWinThumbnailToolBar* thumbbar = new QWinThumbnailToolBar(this);
thumbbar->setWindow(this->windowHandle());
QWinThumbnailToolButton* settings = new QWinThumbnailToolButton(thumbbar);
settings->setToolTip("Settings");
QIcon icon(":/images/settings.png");
settings->setIcon(icon);
settings->setDismissOnClick(true);
connect(settings, &QWinThumbnailToolButton::clicked, [this]() {
Utils::setStackWidget(ui->navStack, ui->settingswidget);
});
thumbbar->addButton(settings);
#endif
}
void MainWindow::changeEvent(QEvent* e) void MainWindow::changeEvent(QEvent* e)
{ {
if (e->type() == QEvent::WindowStateChange) { if (e->type() == QEvent::WindowStateChange) {
......
...@@ -49,7 +49,6 @@ public: ...@@ -49,7 +49,6 @@ public:
static auto instance = new MainWindow(); static auto instance = new MainWindow();
return *instance; return *instance;
} }
void createThumbBar();
bool init(); bool init();
void show(); void show();
float getCurrentScalingRatio(); float getCurrentScalingRatio();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment