mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-11 09:18:40 +12:00
Qt: simplify resetGeometry occurances
This commit is contained in:
parent
755ceb50a4
commit
92ec846375
3 changed files with 6 additions and 22 deletions
|
@ -151,15 +151,8 @@ trophy_manager_dialog::trophy_manager_dialog(std::shared_ptr<gui_settings> gui_s
|
|||
all_layout->setStretch(1, 1);
|
||||
setLayout(all_layout);
|
||||
|
||||
QByteArray geometry = m_gui_settings->GetValue(gui::tr_geometry).toByteArray();
|
||||
if (geometry.isEmpty() == false)
|
||||
{
|
||||
restoreGeometry(geometry);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!restoreGeometry(m_gui_settings->GetValue(gui::tr_geometry).toByteArray()))
|
||||
resize(QDesktopWidget().availableGeometry().size() * 0.7);
|
||||
}
|
||||
|
||||
// Make connects
|
||||
connect(m_icon_slider, &QSlider::valueChanged, this, [=](int val)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue