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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user