mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-09-18 07:22:25 +00:00
Qt: don't create stupid default.ini file when resetting gui configs
This commit is contained in:
parent
9b672cb969
commit
ab4189998c
3 changed files with 3 additions and 2 deletions
|
@ -304,7 +304,7 @@ QStringList gui_settings::GetStylesheetEntries()
|
||||||
#else
|
#else
|
||||||
QDir platformStylesheetDir = QCoreApplication::applicationDirPath() + "/../share/rpcs3/GuiConfigs/";
|
QDir platformStylesheetDir = QCoreApplication::applicationDirPath() + "/../share/rpcs3/GuiConfigs/";
|
||||||
#endif
|
#endif
|
||||||
res.append(gui::utils::get_dir_entries(platformStylesheetDir, nameFilter));
|
res.append(gui::utils::get_dir_entries(platformStylesheetDir, name_filter));
|
||||||
res.removeDuplicates();
|
res.removeDuplicates();
|
||||||
#endif
|
#endif
|
||||||
res.sort(Qt::CaseInsensitive);
|
res.sort(Qt::CaseInsensitive);
|
||||||
|
|
|
@ -5,6 +5,8 @@
|
||||||
#include <QVariant>
|
#include <QVariant>
|
||||||
#include <QSize>
|
#include <QSize>
|
||||||
|
|
||||||
|
#include <memory>
|
||||||
|
|
||||||
struct gui_save
|
struct gui_save
|
||||||
{
|
{
|
||||||
QString key;
|
QString key;
|
||||||
|
|
|
@ -1608,7 +1608,6 @@ settings_dialog::settings_dialog(std::shared_ptr<gui_settings> gui_settings, std
|
||||||
{
|
{
|
||||||
apply_gui_options(true);
|
apply_gui_options(true);
|
||||||
m_gui_settings->Reset(true);
|
m_gui_settings->Reset(true);
|
||||||
m_gui_settings->ChangeToConfig(gui::Default);
|
|
||||||
Q_EMIT GuiSettingsSyncRequest(true);
|
Q_EMIT GuiSettingsSyncRequest(true);
|
||||||
AddConfigs();
|
AddConfigs();
|
||||||
AddStylesheets();
|
AddStylesheets();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue