on xenial help sign in
Hide panel on spread
commit6df9d2da0deb5df9f60f766a7b9be6c586ec535a authorNick Dedekind <nick.dedekind@canonical.com> dateTue 18 Oct 2016, 13:10 (10 years ago) parenta46efde
2 files changed+9
plugins/Unity/Indicators/sharedunitymenumodel.cpp+4 qml/Shell.qml+5
plugins/Unity/Indicators/sharedunitymenumodel.cpp+4
@@ -81,12 +81,16 @@ void SharedUnityMenuModel::initialize()
8181 }
8282 } else {
8383 QSharedPointer<UnityMenuModel> model = UnityMenuModelCache::singleton()->model(m_menuObjectPath);
84+
8485 if (model != m_model) {
8586 if (model->busName() != m_busName) model->setBusName(m_busName);
8687 if (model->actions() != m_actions) model->setActions(m_actions);
8788
8889 m_model = model;
8990 Q_EMIT modelChanged();
91+ } else if (m_model) {
92+ if (m_model->busName() != m_busName) m_model->setBusName(m_busName);
93+ if (m_model->actions() != m_actions) m_model->setActions(m_actions);
9094 }
9195 }
9296}
qml/Shell.qml+5
@@ -314,6 +314,11 @@ StyledItem {
314314
315315 // TODO: This is not implemented yet in the new stage...
316316 spreadEnabled: tutorial.spreadEnabled && (!greeter || (!greeter.hasLockedApp && !greeter.shown))
317+
318+ onSpreadShownChanged: {
319+ panel.indicators.hide();
320+ panel.applicationMenus.hide();
321+ }
317322 }
318323 }
319324