mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-24 21:42:51 -05:00
fix some topbar issues
This commit is contained in:
@@ -374,16 +374,14 @@ Item {
|
||||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
if (!SettingsData.topBarLeftWidgets
|
||||
|| SettingsData.topBarLeftWidgets.length === 0)
|
||||
// Only set defaults if widgets have never been configured (null/undefined, not empty array)
|
||||
if (!SettingsData.topBarLeftWidgets)
|
||||
SettingsData.setTopBarLeftWidgets(defaultLeftWidgets)
|
||||
|
||||
if (!SettingsData.topBarCenterWidgets
|
||||
|| SettingsData.topBarCenterWidgets.length === 0)
|
||||
if (!SettingsData.topBarCenterWidgets)
|
||||
SettingsData.setTopBarCenterWidgets(defaultCenterWidgets)
|
||||
|
||||
if (!SettingsData.topBarRightWidgets
|
||||
|| SettingsData.topBarRightWidgets.length === 0)
|
||||
if (!SettingsData.topBarRightWidgets)
|
||||
SettingsData.setTopBarRightWidgets(defaultRightWidgets)
|
||||
|
||||
["left", "center", "right"].forEach(sectionId => {
|
||||
|
||||
Reference in New Issue
Block a user