Skip to content

Commit

Permalink
Fixed Icons
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugen Fischer authored and Eugen Fischer committed Nov 24, 2023
1 parent 1c62969 commit db06a8b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/gui/nmcgui/nmcsettingsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
#include "nmcsettingsdialog.h"
#include "QtWidgets/qtoolbar.h"
#include "settingsdialog.h"
#include "ui_settingsdialog.h"


namespace OCC {

Expand All @@ -32,12 +30,12 @@ void NMCSettingsDialog::slotSwitchPage(QAction *action)
SettingsDialog::slotSwitchPage(action);

customizeStyle();
if(action->text() == tr("General"))
if(action->text() == QCoreApplication::translate("OCC::SettingsDialog","General"))
{
const QIcon openIcon = QIcon::fromTheme("iconPath", QIcon(":/client/theme/NMCIcons/settings_magenta.svg"));
action->setIcon(openIcon);
}
else if(action->text() == tr("Network"))
else if(action->text() == QCoreApplication::translate("OCC::SettingsDialog","Network"))
{
const QIcon openIcon = QIcon::fromTheme("iconPath", QIcon(":/client/theme/NMCIcons/network_magenta.svg"));
action->setIcon(openIcon);
Expand All @@ -47,7 +45,6 @@ void NMCSettingsDialog::slotSwitchPage(QAction *action)
const QIcon openIcon = QIcon::fromTheme("iconPath", QIcon(":/client/theme/NMCIcons/account_magenta.svg"));
action->setIcon(openIcon);
}

}


Expand Down

0 comments on commit db06a8b

Please sign in to comment.