UI: Minor fixes.

This commit is contained in:
Nodir Temirkhodjaev 2021-06-02 17:56:52 +03:00
parent 03ba22436a
commit 1aeb788728

View File

@ -52,7 +52,7 @@ namespace {
void setupAppStyle() void setupAppStyle()
{ {
const auto fusionStyle = QStyleFactory::create("Fusion"); QStyle *fusionStyle = QStyleFactory::create("Fusion");
QApplication::setStyle(fusionStyle); QApplication::setStyle(fusionStyle);
QApplication::setPalette(fusionStyle->standardPalette()); QApplication::setPalette(fusionStyle->standardPalette());
} }
@ -408,6 +408,9 @@ void FortManager::show()
{ {
setupAppStyle(); // Style & Palette setupAppStyle(); // Style & Palette
setupTranslationManager();
setupMainWindow();
showTrayIcon(); showTrayIcon();
if (IoC<UserSettings>()->iniUser().graphWindowVisible()) { if (IoC<UserSettings>()->iniUser().graphWindowVisible()) {
@ -418,8 +421,6 @@ void FortManager::show()
void FortManager::showTrayIcon() void FortManager::showTrayIcon()
{ {
if (!m_trayIcon) { if (!m_trayIcon) {
setupTranslationManager();
setupMainWindow();
setupTrayIcon(); setupTrayIcon();
} }