UI/Qt: Use the IniFormat for QSettings

This means that the settings will receive their own directory on all
platforms
This commit is contained in:
circl 2024-07-15 19:22:34 +02:00 committed by Andrew Kaster
parent a443f50807
commit 5da1dae67e
Notes: sideshowbarker 2024-07-18 02:44:15 +09:00

View file

@ -15,7 +15,7 @@ namespace Ladybird {
Settings::Settings()
: m_search_engine(WebView::default_search_engine())
{
m_qsettings = make<QSettings>("Ladybird", "Ladybird", this);
m_qsettings = make<QSettings>(QSettings::IniFormat, QSettings::UserScope, "Ladybird", "Ladybird", this);
auto default_search_engine = WebView::default_search_engine();
auto default_search_engine_name = qstring_from_ak_string(default_search_engine.name);