mirror of
https://github.com/tnodir/fort
synced 2024-11-15 13:37:40 +00:00
UI: Minor fixes.
This commit is contained in:
parent
03ba22436a
commit
1aeb788728
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user