1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-06-15 23:55:21 -04:00

calendar: remove launch button from settings

This commit is contained in:
bbedward
2026-06-15 19:02:08 -04:00
parent a6ab3bab4c
commit 78daaf0cb4
3 changed files with 10 additions and 16 deletions
@@ -143,15 +143,6 @@ Item {
} }
} }
DankButton {
text: I18n.tr("Launch DankCalendar")
iconName: "calendar_month"
backgroundColor: Theme.primary
textColor: Theme.primaryText
visible: CalendarService.dankNeedsLaunch && CalendarService.dankBinaryExists
onClicked: CalendarService.launchDankCalendar()
}
Rectangle { Rectangle {
width: parent.width width: parent.width
height: 1 height: 1
+9 -6
View File
@@ -103,15 +103,18 @@ Item {
} }
function _applySocketPath(path) { function _applySocketPath(path) {
if (path === socketPath) { const changed = path !== socketPath;
if (socketFound && !connected) if (changed)
requestSocket.connected = true; log.info("dankcal socket discovered:", path);
if (!changed && connected)
return; return;
} socketPath = path;
log.info("dankcal socket discovered:", path); _reconnect();
}
function _reconnect() {
requestSocket.connected = false; requestSocket.connected = false;
subscribeSocket.connected = false; subscribeSocket.connected = false;
socketPath = path;
Qt.callLater(() => requestSocket.connected = true); Qt.callLater(() => requestSocket.connected = true);
} }
+1 -1
View File
@@ -34,7 +34,7 @@ Singleton {
readonly property bool dankConnected: dankBackend.connected readonly property bool dankConnected: dankBackend.connected
readonly property bool dankBinaryExists: dankBackend.binaryExists readonly property bool dankBinaryExists: dankBackend.binaryExists
readonly property bool dankNeedsLaunch: backendPref === "dankcal" && !dankBackend.connected readonly property bool dankNeedsLaunch: backendPref === "dankcal" && !dankBackend.connected && !dankBackend.socketFound
property var calendars: dankBackend.calendars property var calendars: dankBackend.calendars
property var eventsByDate: ({}) property var eventsByDate: ({})