|
|
|
@ -104,7 +104,7 @@ void Settings::load()
@@ -104,7 +104,7 @@ void Settings::load()
|
|
|
|
|
|
|
|
|
|
s.beginGroup("General"); |
|
|
|
|
enableIPv6 = s.value("enableIPv6", true).toBool(); |
|
|
|
|
translation = s.value("translation", "").toString(); |
|
|
|
|
translation = s.value("translation", "en").toString(); |
|
|
|
|
makeToxPortable = s.value("makeToxPortable", false).toBool(); |
|
|
|
|
autostartInTray = s.value("autostartInTray", false).toBool(); |
|
|
|
|
closeToTray = s.value("closeToTray", false).toBool(); |
|
|
|
@ -168,10 +168,6 @@ void Settings::load()
@@ -168,10 +168,6 @@ void Settings::load()
|
|
|
|
|
outDev = s.value("outDev", "").toString(); |
|
|
|
|
s.endGroup(); |
|
|
|
|
|
|
|
|
|
// try to set a smiley pack if none is selected
|
|
|
|
|
if (!SmileyPack::isValid(smileyPack) && !SmileyPack::listSmileyPacks().isEmpty()) |
|
|
|
|
smileyPack = SmileyPack::listSmileyPacks()[0].second; |
|
|
|
|
|
|
|
|
|
// Read the embedded DHT bootsrap nodes list if needed
|
|
|
|
|
if (dhtServerList.isEmpty()) |
|
|
|
|
{ |
|
|
|
@ -283,7 +279,7 @@ void Settings::save(QString path)
@@ -283,7 +279,7 @@ void Settings::save(QString path)
|
|
|
|
|
s.endGroup(); |
|
|
|
|
|
|
|
|
|
s.beginGroup("AutoAccept"); |
|
|
|
|
s.setValue("autoSaveEnabled", autoSaveEnabled); |
|
|
|
|
s.setValue("autoSaveEnabled", autoSaveEnabled); |
|
|
|
|
s.setValue("globalAutoAcceptDir", globalAutoAcceptDir); |
|
|
|
|
for (auto& id : autoAccept.keys()) |
|
|
|
|
s.setValue(id, autoAccept.value(id)); |
|
|
|
|