Skip to content

Commit

Permalink
feat: first run install
Browse files Browse the repository at this point in the history
  • Loading branch information
amorphobia committed Sep 30, 2024
1 parent fbca818 commit 2d33c7e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Lib/RabbitTrayMenu.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion Lib/librime-ahk
2 changes: 1 addition & 1 deletion Rabbit.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 2d33c7e

Please sign in to comment.