mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-26 16:56:19 +00:00
Fixed: EstimatedSize is in KiB
This commit is contained in:
parent
fe7bfe397e
commit
6874bb1504
1 changed files with 6 additions and 3 deletions
|
@ -991,10 +991,13 @@ bool COperationDialog::updateAddRemoveEntry()
|
||||||
{
|
{
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
QSettings settings("HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Ryzom", QSettings::NativeFormat);
|
QSettings settings("HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Ryzom", QSettings::NativeFormat);
|
||||||
QStringList versionTokens = QApplication::applicationVersion().split('.');
|
|
||||||
|
|
||||||
settings.setValue("DisplayVersion", QApplication::applicationVersion());
|
QString version = QApplication::applicationVersion();
|
||||||
settings.setValue("EstimatedSize", getDirectorySize(config->getInstallationDirectory(), true));
|
|
||||||
|
settings.setValue("DisplayVersion", version);
|
||||||
|
settings.setValue("EstimatedSize", (quint32)(getDirectorySize(config->getInstallationDirectory(), true) / 1024)); // size if in KiB
|
||||||
|
|
||||||
|
QStringList versionTokens = version.split('.');
|
||||||
settings.setValue("MajorVersion", versionTokens[0].toInt());
|
settings.setValue("MajorVersion", versionTokens[0].toInt());
|
||||||
settings.setValue("MinorVersion", versionTokens[1].toInt());
|
settings.setValue("MinorVersion", versionTokens[1].toInt());
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue