From 1aeb7887288653a314e1fc656a8e8b750a107d45 Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Wed, 2 Jun 2021 17:56:52 +0300 Subject: [PATCH] UI: Minor fixes. --- src/ui/fortmanager.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ui/fortmanager.cpp b/src/ui/fortmanager.cpp index bf9938cb..81e1b1e2 100644 --- a/src/ui/fortmanager.cpp +++ b/src/ui/fortmanager.cpp @@ -52,7 +52,7 @@ namespace { void setupAppStyle() { - const auto fusionStyle = QStyleFactory::create("Fusion"); + QStyle *fusionStyle = QStyleFactory::create("Fusion"); QApplication::setStyle(fusionStyle); QApplication::setPalette(fusionStyle->standardPalette()); } @@ -408,6 +408,9 @@ void FortManager::show() { setupAppStyle(); // Style & Palette + setupTranslationManager(); + setupMainWindow(); + showTrayIcon(); if (IoC()->iniUser().graphWindowVisible()) { @@ -418,8 +421,6 @@ void FortManager::show() void FortManager::showTrayIcon() { if (!m_trayIcon) { - setupTranslationManager(); - setupMainWindow(); setupTrayIcon(); }