mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Fix Make Tox Portable impossible to disable
This commit is contained in:
parent
7576795cca
commit
bf8e1101c5
12
settings.cpp
12
settings.cpp
|
@ -48,13 +48,19 @@ Settings& Settings::getInstance()
|
|||
|
||||
void Settings::load()
|
||||
{
|
||||
if (loaded) {
|
||||
if (loaded)
|
||||
return;
|
||||
}
|
||||
|
||||
QFile portableSettings(FILENAME);
|
||||
if (portableSettings.exists())
|
||||
makeToxPortable=true;
|
||||
{
|
||||
QSettings ps(FILENAME, QSettings::IniFormat);
|
||||
ps.beginGroup("General");
|
||||
makeToxPortable = ps.value("makeToxPortable", false).toBool();
|
||||
ps.endGroup();
|
||||
}
|
||||
else
|
||||
makeToxPortable = false;
|
||||
|
||||
QString filePath = QDir(getSettingsDirPath()).filePath(FILENAME);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user