Skip to content

Commit

Permalink
Simplify/move new user logic to Toolbar.ahk
Browse files Browse the repository at this point in the history
  • Loading branch information
fincs committed May 11, 2022
1 parent 9b5af17 commit 8613a7a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 26 deletions.
Empty file removed source/newuser/user.ahk.api
Empty file.
15 changes: 14 additions & 1 deletion source/toolbar/Toolbar.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,21 @@ if SciTEVersion && (SciTEVersion != CurrentSciTEVersion)

if !IsPortable && (!FileExist(LocalPropsPath) || !SciTEVersion)
{
; Rename the old SciTE folder
IfExist, %LocalSciTEPath%
{
FileMoveDir, %LocalSciTEPath%, %LocalSciTEPath%%A_TickCount%, R
if ErrorLevel
{
MsgBox, 16, SciTE4AutoHotkey Toolbar, Could not safely rename old SciTE settings folder!
ExitApp
}
}

; Create the SciTE user folder
RunWait, "%A_AhkPath%" "%SciTEDir%\tools\NewUser.ahk"
FileCreateDir, %A_MyDocuments%\AutoHotkey\Lib ; ensure dir structure exists
FileCopyDir, %SciTEDir%\newuser, %LocalSciTEPath%

FileDelete, %LocalSciTEPath%\$VER
FileAppend, %CurrentSciTEVersion%, %LocalSciTEPath%\$VER

Expand Down
25 changes: 0 additions & 25 deletions source/tools/NewUser.ahk

This file was deleted.

0 comments on commit 8613a7a

Please sign in to comment.