1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-01 19:18:28 -04:00

dash: fix clock index hardcoded at tab 0

This commit is contained in:
bbedward
2026-07-06 13:06:30 -04:00
parent 240adfa28f
commit cc0bec2682
2 changed files with 4 additions and 3 deletions
@@ -1105,12 +1105,13 @@ Item {
onClockClicked: {
const section = topBarContent.getWidgetSection(parent) || "center";
const tabIndex = SettingsData.dashTabIndexForId("overview");
topBarContent.openWidgetPopout({
loader: dankDashPopoutLoader,
widgetItem: clockWidget,
section,
tabIndex: 0,
triggerSource: topBarContent._dashTriggerSource(section, 0),
tabIndex,
triggerSource: topBarContent._dashTriggerSource(section, tabIndex),
mode: "click",
useCenterSection: true,
setTriggerScreen: true
@@ -736,7 +736,7 @@ Item {
case "music":
case "weather":
{
const tabIndex = widgetId === "clock" ? 0 : SettingsData.dashTabIndexForId(widgetId === "music" ? "media" : "weather");
const tabIndex = SettingsData.dashTabIndexForId(widgetId === "clock" ? "overview" : (widgetId === "music" ? "media" : "weather"));
return barContent.openWidgetPopout(Object.assign({}, base, {
loader,
tabIndex,