mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-06 15:01:28 +12:00
GUI: add custom config indicator (#3108)
* game_list: add custom config indicator * icon resize: get rid of duplicate call (great performance boost) * icon resize: only save on slider release or clicks (performance) refactoring shenanigans * game_list: skip filtered out games in Refresh (performance) * settings_dialog: remove unnecessary show() that caused glitches * gs_frame: add disableMouse setting * fix travis warnings
This commit is contained in:
parent
9a1a7dd531
commit
4dbc546e7b
17 changed files with 154 additions and 83 deletions
|
@ -677,6 +677,8 @@ settings_dialog::settings_dialog(std::shared_ptr<gui_settings> xSettings, const
|
|||
|
||||
ui->gs_resizeOnBoot->setToolTip(json_emu_misc["gs_resizeOnBoot"].toString());
|
||||
|
||||
ui->gs_disableMouse->setToolTip(json_emu_misc["gs_disableMouse"].toString());
|
||||
|
||||
ui->cb_show_welcome->setToolTip(json_emu_gui["show_welcome"].toString());
|
||||
|
||||
xemu_settings->EnhanceCheckBox(ui->exitOnStop, emu_settings::ExitRPCS3OnFinish);
|
||||
|
@ -779,6 +781,9 @@ settings_dialog::settings_dialog(std::shared_ptr<gui_settings> xSettings, const
|
|||
addColoredIcon(ui->pb_gl_tool_icon_color, xgui_settings->GetValue(GUI::gl_toolIconColor).value<QColor>(), QIcon(":/Icons/home_blue.png"), GUI::gl_tool_icon_color);
|
||||
addColoredIcon(ui->pb_tool_icon_color, xgui_settings->GetValue(GUI::mw_toolIconColor).value<QColor>(), QIcon(":/Icons/stop.png"), GUI::mw_tool_icon_color);
|
||||
|
||||
ui->gs_disableMouse->setChecked(xgui_settings->GetValue(GUI::gs_disableMouse).toBool());
|
||||
connect(ui->gs_disableMouse, &QCheckBox::clicked, [=](bool val) { xgui_settings->SetValue(GUI::gs_disableMouse, val); });
|
||||
|
||||
bool enableButtons = xgui_settings->GetValue(GUI::gs_resize).toBool();
|
||||
ui->gs_resizeOnBoot->setChecked(enableButtons);
|
||||
ui->gs_width->setEnabled(enableButtons);
|
||||
|
@ -960,7 +965,6 @@ void settings_dialog::OnApplyStylesheet()
|
|||
|
||||
int settings_dialog::exec()
|
||||
{
|
||||
show();
|
||||
for (int i = 0; i < ui->tabWidget->count(); i++)
|
||||
{
|
||||
ui->tabWidget->setCurrentIndex(i);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue