mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-10 09:19:01 +00:00
Changed: Create client shortcuts for profile
This commit is contained in:
parent
19aeadc732
commit
63c963d465
1 changed files with 17 additions and 0 deletions
|
@ -1065,6 +1065,23 @@ void COperationDialog::deleteComponentsServers()
|
||||||
emit done();
|
emit done();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void COperationDialog::addComponentsProfiles()
|
||||||
|
{
|
||||||
|
m_currentOperation = tr("Add profiles");
|
||||||
|
m_currentOperationProgressFormat = tr("Adding profile %1...");
|
||||||
|
|
||||||
|
CConfigFile *config = CConfigFile::getInstance();
|
||||||
|
|
||||||
|
foreach(const QString &profileId, m_addComponents.profiles)
|
||||||
|
{
|
||||||
|
CProfile &profile = config->getProfile(profileId);
|
||||||
|
|
||||||
|
if (profile.desktopShortcut) createClientDesktopShortcut(profile.id);
|
||||||
|
|
||||||
|
if (profile.menuShortcut) createClientMenuShortcut(profile.id);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void COperationDialog::deleteComponentsProfiles()
|
void COperationDialog::deleteComponentsProfiles()
|
||||||
{
|
{
|
||||||
m_currentOperation = tr("Delete profiles");
|
m_currentOperation = tr("Delete profiles");
|
||||||
|
|
Loading…
Reference in a new issue