From 2d33c7ee0a19b52e64b39f770406ffa095f1798a Mon Sep 17 00:00:00 2001 From: amorphobia Date: Mon, 30 Sep 2024 21:36:05 +0800 Subject: [PATCH] feat: first run install --- Lib/RabbitTrayMenu.ahk | 5 +++++ Lib/librime-ahk | 2 +- Rabbit.ahk | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Lib/RabbitTrayMenu.ahk b/Lib/RabbitTrayMenu.ahk index 1e81006..275766f 100644 --- a/Lib/RabbitTrayMenu.ahk +++ b/Lib/RabbitTrayMenu.ahk @@ -85,6 +85,11 @@ Deploy() { Run(Format("{} `"{}\RabbitDeployer.ahk`" deploy 1", A_AhkPath, A_ScriptDir)) ExitApp() } +Install() { + Run(Format("{} `"{}\RabbitDeployer.ahk`" install 1", A_AhkPath, A_ScriptDir)) + ExitApp() +} + ToggleSuspend() { global rime, session_id, box, STATUS_TOOLTIP ToolTip() diff --git a/Lib/librime-ahk b/Lib/librime-ahk index 7462dec..bd0f16f 160000 --- a/Lib/librime-ahk +++ b/Lib/librime-ahk @@ -1 +1 @@ -Subproject commit 7462dec0e58f0e735b2817007d8da3eb64d90fc9 +Subproject commit bd0f16ff98658a40bea219b5be24d92835689f06 diff --git a/Rabbit.ahk b/Rabbit.ahk index 96fdef6..0638c31 100644 --- a/Rabbit.ahk +++ b/Rabbit.ahk @@ -72,7 +72,7 @@ RabbitMain(args) { UpdateTrayIcon() if first_run { SetDefaultKeyboard(layout) - Deploy() + Install() } else if rime.start_maintenance(m == RABBIT_FULL_MAINTENANCE) rime.join_maintenance_thread() } else {