mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-08-05 13:08:29 -04:00
calendar: remove launch button from settings
This commit is contained in:
@@ -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