always copy current dock launchers to global ones

--when the user activate the syncLaunchers choice the
current dock launchers are copied as global launchers
pull/1/head
Michail Vourlakos 8 years ago
parent be83d54339
commit c7ad6463d7

@ -373,10 +373,8 @@ void DockConfigView::setSyncLaunchers(bool sync)
auto *dockCorona = qobject_cast<DockCorona *>(m_dockView->corona()); auto *dockCorona = qobject_cast<DockCorona *>(m_dockView->corona());
//when the global launchers list is empty then the current dock launchers are used //when the global launchers list is empty then the current dock launchers are used
if (sync && dockCorona && dockCorona->globalSettings() && dockCorona->globalSettings()->globalLaunchers().count() == 0) { if (sync && dockCorona && dockCorona->globalSettings()) {
//update the global launchers //update the global launchers
//getLauncherList
Plasma::Containment *c = m_dockView->containment(); Plasma::Containment *c = m_dockView->containment();
const auto &applets = c->applets(); const auto &applets = c->applets();

Loading…
Cancel
Save