1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-25 04:02:42 +01:00

Qt: Properly repaint the Emulation menu icons

This commit is contained in:
Megamouse 2022-06-27 09:19:27 +02:00
parent f5a55b3024
commit ab5a33fc31
2 changed files with 6 additions and 2 deletions

View File

@ -1446,7 +1446,6 @@ void main_window::RepaintToolBarIcons()
m_icon_play = icon(":/Icons/play.png");
m_icon_pause = icon(":/Icons/pause.png");
m_icon_stop = icon(":/Icons/stop.png");
m_icon_restart = icon(":/Icons/restart.png");
m_icon_fullscreen_on = icon(":/Icons/fullscreen.png");
m_icon_fullscreen_off = icon(":/Icons/exit_fullscreen.png");
@ -1459,17 +1458,23 @@ void main_window::RepaintToolBarIcons()
ui->toolbar_refresh ->setIcon(icon(":/Icons/refresh.png"));
ui->toolbar_stop ->setIcon(icon(":/Icons/stop.png"));
ui->sysStopAct->setIcon(icon(":/Icons/stop.png"));
ui->sysRebootAct->setIcon(m_icon_restart);
if (Emu.IsRunning())
{
ui->toolbar_start->setIcon(m_icon_pause);
ui->sysPauseAct->setIcon(m_icon_pause);
}
else if (Emu.IsStopped() && !Emu.GetBoot().empty())
{
ui->toolbar_start->setIcon(m_icon_restart);
ui->sysPauseAct->setIcon(m_icon_restart);
}
else
{
ui->toolbar_start->setIcon(m_icon_play);
ui->sysPauseAct->setIcon(m_icon_play);
}
if (isFullScreen())

View File

@ -52,7 +52,6 @@ class main_window : public QMainWindow
QIcon m_app_icon;
QIcon m_icon_play;
QIcon m_icon_pause;
QIcon m_icon_stop;
QIcon m_icon_restart;
QIcon m_icon_fullscreen_on;
QIcon m_icon_fullscreen_off;