mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-06-19 17:45:21 -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user