remove duplicate code in statusbar
Signed-off-by: swurl <swurl@swurl.xyz>
This commit is contained in:
parent
8795b96d46
commit
446e362530
1 changed files with 412 additions and 416 deletions
|
@ -4649,13 +4649,9 @@ void GMainWindow::UpdateStatusBar() {
|
|||
} else {
|
||||
emu_speed_label->setText(tr("Speed: %1%").arg(results.emulation_speed * 100.0, 0, 'f', 0));
|
||||
}
|
||||
if (!Settings::values.use_speed_limit) {
|
||||
game_fps_label->setText(
|
||||
tr("Game: %1 FPS (Unlocked)").arg(std::round(results.average_game_fps), 0, 'f', 0));
|
||||
} else {
|
||||
game_fps_label->setText(
|
||||
tr("Game: %1 FPS").arg(std::round(results.average_game_fps), 0, 'f', 0));
|
||||
}
|
||||
tr("Game: %1 FPS").arg(std::round(results.average_game_fps), 0, 'f', 0) + tr(Settings::values.use_speed_limit ? " (Unlocked)" : ""));
|
||||
|
||||
emu_frametime_label->setText(tr("Frame: %1 ms").arg(results.frametime * 1000.0, 0, 'f', 2));
|
||||
|
||||
res_scale_label->setVisible(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue