mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-25 05:52:50 -05:00
remove old remnants from when it was just a calendar
This commit is contained in:
@@ -12,7 +12,7 @@ import qs.Modules.DankDash
|
||||
DankPopout {
|
||||
id: root
|
||||
|
||||
property bool calendarVisible: false
|
||||
property bool dashVisible: false
|
||||
property string triggerSection: "center"
|
||||
property var triggerScreen: null
|
||||
property int currentTabIndex: 0
|
||||
@@ -38,11 +38,11 @@ DankPopout {
|
||||
triggerWidth: 80
|
||||
positioning: "center"
|
||||
screen: triggerScreen
|
||||
shouldBeVisible: calendarVisible
|
||||
shouldBeVisible: dashVisible
|
||||
visible: shouldBeVisible
|
||||
|
||||
onCalendarVisibleChanged: {
|
||||
if (calendarVisible) {
|
||||
onDashVisibleChanged: {
|
||||
if (dashVisible) {
|
||||
open()
|
||||
} else {
|
||||
close()
|
||||
@@ -50,7 +50,7 @@ DankPopout {
|
||||
}
|
||||
|
||||
onBackgroundClicked: {
|
||||
calendarVisible = false
|
||||
dashVisible = false
|
||||
}
|
||||
|
||||
content: Component {
|
||||
@@ -70,7 +70,7 @@ DankPopout {
|
||||
|
||||
Keys.onPressed: function(event) {
|
||||
if (event.key === Qt.Key_Escape) {
|
||||
root.close()
|
||||
root.dashVisible = false
|
||||
event.accepted = true
|
||||
}
|
||||
}
|
||||
|
||||
@@ -685,7 +685,7 @@ PanelWindow {
|
||||
onClockClicked: {
|
||||
dankDashPopoutLoader.active = true
|
||||
if (dankDashPopoutLoader.item) {
|
||||
dankDashPopoutLoader.item.calendarVisible = !dankDashPopoutLoader.item.calendarVisible
|
||||
dankDashPopoutLoader.item.dashVisible = !dankDashPopoutLoader.item.dashVisible
|
||||
dankDashPopoutLoader.item.currentTabIndex = 0 // Overview tab
|
||||
}
|
||||
}
|
||||
@@ -708,7 +708,7 @@ PanelWindow {
|
||||
onClicked: {
|
||||
dankDashPopoutLoader.active = true
|
||||
if (dankDashPopoutLoader.item) {
|
||||
dankDashPopoutLoader.item.calendarVisible = !dankDashPopoutLoader.item.calendarVisible
|
||||
dankDashPopoutLoader.item.dashVisible = !dankDashPopoutLoader.item.dashVisible
|
||||
dankDashPopoutLoader.item.currentTabIndex = 1 // Media tab
|
||||
}
|
||||
}
|
||||
@@ -730,7 +730,7 @@ PanelWindow {
|
||||
onClicked: {
|
||||
dankDashPopoutLoader.active = true
|
||||
if (dankDashPopoutLoader.item) {
|
||||
dankDashPopoutLoader.item.calendarVisible = !dankDashPopoutLoader.item.calendarVisible
|
||||
dankDashPopoutLoader.item.dashVisible = !dankDashPopoutLoader.item.dashVisible
|
||||
dankDashPopoutLoader.item.currentTabIndex = 2 // Weather tab
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user