mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-25 10:20:54 +00:00
Changed: Create shortcut in menu for Installer
--HG-- branch : develop
This commit is contained in:
parent
f27b388b11
commit
cb9acedb72
1 changed files with 20 additions and 0 deletions
|
@ -724,6 +724,26 @@ void COperationDialog::copyInstaller()
|
||||||
QFile::rename(oldInstallerFullPath, newInstallerFullPath);
|
QFile::rename(oldInstallerFullPath, newInstallerFullPath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// create menu directory if defined
|
||||||
|
QString path = config->getMenuDirectory();
|
||||||
|
|
||||||
|
if (!path.isEmpty())
|
||||||
|
{
|
||||||
|
QDir dir;
|
||||||
|
|
||||||
|
if (!dir.mkpath(path))
|
||||||
|
{
|
||||||
|
qDebug() << "Unable to create directory" << path;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// create installer link in menu
|
||||||
|
QString executable = newInstallerFullPath;
|
||||||
|
QString shortcut = config->getInstallerMenuLinkFullPath();
|
||||||
|
QString desc = "Ryzom Installer";
|
||||||
|
|
||||||
|
createLink(executable, shortcut, "", "", desc);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: create shortcuts for installer
|
// TODO: create shortcuts for installer
|
||||||
|
|
Loading…
Reference in a new issue