Skip to content

Commit

Permalink
Update explorer_create_on_paste.ahk
Browse files Browse the repository at this point in the history
  • Loading branch information
ewerybody committed Dec 7, 2022
1 parent da56654 commit f1b951f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions ExplorerCreateFile/explorer_create_on_paste.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,16 @@ _explorer_create_from_text(current_path) {


_explorer_create_finish(file_name) {
if explorer_try_select(file_name)
Return
Loop, 10
{
if explorer_select(basename)
Return
Sleep, 400
}

; TODO: Use the lib func in future
; if explorer_try_select(file_name)
; Return

msgbox_error("Could not create file """ file_name """!", "ExplorerCreateFile: ERROR")
}
Expand Down

0 comments on commit f1b951f

Please sign in to comment.