mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-20 22:05:12 +00:00
Qt: implement time played and last played
This commit is contained in:
parent
35c0c05707
commit
3be92ec52b
7 changed files with 133 additions and 4 deletions
|
|
@ -851,6 +851,12 @@ void main_window::OnEmuPause()
|
|||
ui->toolbar_start->setIcon(m_icon_play);
|
||||
ui->toolbar_start->setText(tr("Play"));
|
||||
ui->toolbar_start->setToolTip(tr("Resume emulation"));
|
||||
|
||||
// Refresh game list in order to update time played
|
||||
if (m_gameListFrame)
|
||||
{
|
||||
m_gameListFrame->Refresh();
|
||||
}
|
||||
}
|
||||
|
||||
void main_window::OnEmuStop()
|
||||
|
|
@ -883,6 +889,12 @@ void main_window::OnEmuStop()
|
|||
ui->toolbar_start->setToolTip(Emu.IsReady() ? tr("Start emulation") : tr("Resume emulation"));
|
||||
}
|
||||
ui->actionManage_Users->setEnabled(true);
|
||||
|
||||
// Refresh game list in order to update time played
|
||||
if (m_gameListFrame)
|
||||
{
|
||||
m_gameListFrame->Refresh();
|
||||
}
|
||||
}
|
||||
|
||||
void main_window::OnEmuReady()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue