1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-25 05:52:50 -05:00

welcome: add IPC targets and button on about page

This commit is contained in:
bbedward
2026-01-04 21:45:02 -05:00
parent d23fc9f2df
commit 145a974b6d
5 changed files with 102 additions and 2 deletions

View File

@@ -894,6 +894,26 @@ Item {
target: "clipboard"
}
IpcHandler {
function open(): string {
FirstLaunchService.showWelcome();
return "WELCOME_OPEN_SUCCESS";
}
function doctor(): string {
FirstLaunchService.showDoctor();
return "WELCOME_DOCTOR_SUCCESS";
}
function page(pageNum: string): string {
const num = parseInt(pageNum) || 0;
FirstLaunchService.showGreeter(num);
return `WELCOME_PAGE_SUCCESS: ${num}`;
}
target: "welcome"
}
IpcHandler {
function toggleOverlay(instanceId: string): string {
if (!instanceId)