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:
@@ -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 {
|
||||
width: parent.width
|
||||
height: 1
|
||||
|
||||
@@ -103,15 +103,18 @@ Item {
|
||||
}
|
||||
|
||||
function _applySocketPath(path) {
|
||||
if (path === socketPath) {
|
||||
if (socketFound && !connected)
|
||||
requestSocket.connected = true;
|
||||
const changed = path !== socketPath;
|
||||
if (changed)
|
||||
log.info("dankcal socket discovered:", path);
|
||||
if (!changed && connected)
|
||||
return;
|
||||
}
|
||||
log.info("dankcal socket discovered:", path);
|
||||
socketPath = path;
|
||||
_reconnect();
|
||||
}
|
||||
|
||||
function _reconnect() {
|
||||
requestSocket.connected = false;
|
||||
subscribeSocket.connected = false;
|
||||
socketPath = path;
|
||||
Qt.callLater(() => requestSocket.connected = true);
|
||||
}
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ Singleton {
|
||||
|
||||
readonly property bool dankConnected: dankBackend.connected
|
||||
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 eventsByDate: ({})
|
||||
|
||||
Reference in New Issue
Block a user