1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-07 22:15:38 -05:00

fix ipc return types

This commit is contained in:
bbedward
2025-09-04 15:59:27 -04:00
parent 3c3cffd7b6
commit 54b63a1f5f
6 changed files with 21 additions and 21 deletions

View File

@@ -188,17 +188,17 @@ DankModal {
}
IpcHandler {
function open() {
function open(): string {
clipboardHistoryModal.show()
return "CLIPBOARD_OPEN_SUCCESS"
}
function close() {
hide()
function close(): string {
clipboardHistoryModal.hide()
return "CLIPBOARD_CLOSE_SUCCESS"
}
function toggle() {
function toggle(): string {
clipboardHistoryModal.toggle()
return "CLIPBOARD_TOGGLE_SUCCESS"
}

View File

@@ -60,17 +60,17 @@ DankModal {
}
IpcHandler {
function open() {
function open(): string {
notificationModal.show();
return "NOTIFICATION_MODAL_OPEN_SUCCESS";
}
function close() {
function close(): string {
notificationModal.hide();
return "NOTIFICATION_MODAL_CLOSE_SUCCESS";
}
function toggle() {
function toggle(): string {
notificationModal.toggle();
return "NOTIFICATION_MODAL_TOGGLE_SUCCESS";
}

View File

@@ -41,17 +41,17 @@ DankModal {
content: settingsContent
IpcHandler {
function open() {
function open(): string {
settingsModal.show();
return "SETTINGS_OPEN_SUCCESS";
}
function close() {
function close(): string {
settingsModal.hide();
return "SETTINGS_CLOSE_SUCCESS";
}
function toggle() {
function toggle(): string {
settingsModal.toggle();
return "SETTINGS_TOGGLE_SUCCESS";
}

View File

@@ -83,17 +83,17 @@ DankModal {
}
IpcHandler {
function open() {
function open(): string {
spotlightModal.show()
return "SPOTLIGHT_OPEN_SUCCESS"
}
function close() {
function close(): string {
spotlightModal.hide()
return "SPOTLIGHT_CLOSE_SUCCESS"
}
function toggle() {
function toggle(): string {
spotlightModal.toggle()
return "SPOTLIGHT_TOGGLE_SUCCESS"
}

View File

@@ -135,13 +135,13 @@ Item {
IpcHandler {
target: "lock"
function lock(): void {
function lock() {
console.log("Lock screen requested via IPC")
LockScreenService.resetState()
loader.activeAsync = true
}
function demo(): void {
function demo() {
console.log("Lock screen DEMO mode requested via IPC")
demoWindow.showDemo()
}

View File

@@ -338,7 +338,7 @@ ShellRoot {
}
IpcHandler {
function open() {
function open(): string {
processListModalLoader.active = true
if (processListModalLoader.item)
processListModalLoader.item.show()
@@ -346,14 +346,14 @@ ShellRoot {
return "PROCESSLIST_OPEN_SUCCESS"
}
function close() {
function close(): string {
if (processListModalLoader.item)
processListModalLoader.item.hide()
return "PROCESSLIST_CLOSE_SUCCESS"
}
function toggle() {
function toggle(): string {
processListModalLoader.active = true
if (processListModalLoader.item)
processListModalLoader.item.toggle()
@@ -365,7 +365,7 @@ ShellRoot {
}
IpcHandler {
function open() {
function open(): string {
notepadSlideoutLoader.active = true
if (notepadSlideoutLoader.item) {
notepadSlideoutLoader.item.show()
@@ -374,7 +374,7 @@ ShellRoot {
return "NOTEPAD_OPEN_FAILED"
}
function close() {
function close(): string {
if (notepadSlideoutLoader.item) {
notepadSlideoutLoader.item.hide()
return "NOTEPAD_CLOSE_SUCCESS"
@@ -382,7 +382,7 @@ ShellRoot {
return "NOTEPAD_CLOSE_FAILED"
}
function toggle() {
function toggle(): string {
notepadSlideoutLoader.active = true
if (notepadSlideoutLoader.item) {
notepadSlideoutLoader.item.toggle()