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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user