mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 18:53:28 +01:00
Qt: don't create stupid default.ini file when resetting gui configs
This commit is contained in:
parent
9b672cb969
commit
ab4189998c
@ -304,7 +304,7 @@ QStringList gui_settings::GetStylesheetEntries()
|
||||
#else
|
||||
QDir platformStylesheetDir = QCoreApplication::applicationDirPath() + "/../share/rpcs3/GuiConfigs/";
|
||||
#endif
|
||||
res.append(gui::utils::get_dir_entries(platformStylesheetDir, nameFilter));
|
||||
res.append(gui::utils::get_dir_entries(platformStylesheetDir, name_filter));
|
||||
res.removeDuplicates();
|
||||
#endif
|
||||
res.sort(Qt::CaseInsensitive);
|
||||
|
@ -5,6 +5,8 @@
|
||||
#include <QVariant>
|
||||
#include <QSize>
|
||||
|
||||
#include <memory>
|
||||
|
||||
struct gui_save
|
||||
{
|
||||
QString key;
|
||||
|
@ -1608,7 +1608,6 @@ settings_dialog::settings_dialog(std::shared_ptr<gui_settings> gui_settings, std
|
||||
{
|
||||
apply_gui_options(true);
|
||||
m_gui_settings->Reset(true);
|
||||
m_gui_settings->ChangeToConfig(gui::Default);
|
||||
Q_EMIT GuiSettingsSyncRequest(true);
|
||||
AddConfigs();
|
||||
AddStylesheets();
|
||||
|
Loading…
Reference in New Issue
Block a user