mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-08-08 14:38:30 -04:00
dash: fix clock index hardcoded at tab 0
This commit is contained in:
@@ -1105,12 +1105,13 @@ Item {
|
|||||||
|
|
||||||
onClockClicked: {
|
onClockClicked: {
|
||||||
const section = topBarContent.getWidgetSection(parent) || "center";
|
const section = topBarContent.getWidgetSection(parent) || "center";
|
||||||
|
const tabIndex = SettingsData.dashTabIndexForId("overview");
|
||||||
topBarContent.openWidgetPopout({
|
topBarContent.openWidgetPopout({
|
||||||
loader: dankDashPopoutLoader,
|
loader: dankDashPopoutLoader,
|
||||||
widgetItem: clockWidget,
|
widgetItem: clockWidget,
|
||||||
section,
|
section,
|
||||||
tabIndex: 0,
|
tabIndex,
|
||||||
triggerSource: topBarContent._dashTriggerSource(section, 0),
|
triggerSource: topBarContent._dashTriggerSource(section, tabIndex),
|
||||||
mode: "click",
|
mode: "click",
|
||||||
useCenterSection: true,
|
useCenterSection: true,
|
||||||
setTriggerScreen: true
|
setTriggerScreen: true
|
||||||
|
|||||||
@@ -736,7 +736,7 @@ Item {
|
|||||||
case "music":
|
case "music":
|
||||||
case "weather":
|
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, {
|
return barContent.openWidgetPopout(Object.assign({}, base, {
|
||||||
loader,
|
loader,
|
||||||
tabIndex,
|
tabIndex,
|
||||||
|
|||||||
Reference in New Issue
Block a user