diff --git a/app/view/settings/primaryconfigview.cpp b/app/view/settings/primaryconfigview.cpp index 0e1c881a2..92d1763bc 100644 --- a/app/view/settings/primaryconfigview.cpp +++ b/app/view/settings/primaryconfigview.cpp @@ -267,6 +267,11 @@ void PrimaryConfigView::initView(Latte::View *view) QObject::disconnect(var); } + if (m_latteView && m_latteView->indicator()) { + //! destroy indicator config ui when the configuration window is closed + m_latteView->indicator()->releaseConfigUi(); + } + m_latteView = view; viewconnections << connect(this, &PrimaryConfigView::inAdvancedModeChanged, m_latteView, &Latte::View::inSettingsAdvancedModeChanged); diff --git a/shell/package/contents/configuration/pages/AppearanceConfig.qml b/shell/package/contents/configuration/pages/AppearanceConfig.qml index f3097d06b..a8612c28e 100644 --- a/shell/package/contents/configuration/pages/AppearanceConfig.qml +++ b/shell/package/contents/configuration/pages/AppearanceConfig.qml @@ -53,88 +53,6 @@ PlasmaComponents.Page { anchors.horizontalCenter: parent.horizontalCenter Layout.leftMargin: units.smallSpacing * 2 - //! BEGIN: Layout - ColumnLayout { - Layout.fillWidth: true - Layout.topMargin: units.smallSpacing - spacing: units.smallSpacing - visible: false - - LatteComponents.Header { - text: i18n("Layout") - } - - RowLayout { - Layout.fillWidth: true - Layout.leftMargin: units.smallSpacing * 2 - Layout.rightMargin: units.smallSpacing * 2 - spacing: units.smallSpacing - - LatteComponents.ComboBox { - id: layoutCmb - Layout.fillWidth: true - - property var layoutTexts: []; - property var layouts; - - Component.onCompleted: loadLayouts(); - - Connections { - target:layoutsManager - onMenuLayoutsChanged: layoutCmb.loadLayouts(); - } - - function loadLayouts(){ - layouts = layoutsManager.menuLayouts; - layoutTexts = []; - - //if current layout isnt at the menu layouts - if (layouts.indexOf(layoutsManager.currentLayoutName) === -1) { - if (Qt.application.layoutDirection === Qt.RightToLeft) { - layoutTexts.push( layoutsManager.currentLayoutName + " ✔ "); - } else { - layoutTexts.push( " ✔ "+layoutsManager.currentLayoutName); - } - } - - var activeLayout = 0; - - for(var i=0; i