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 {
|
Rectangle {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: 1
|
height: 1
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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: ({})
|
||||||
|
|||||||
Reference in New Issue
Block a user