Update after Init
This commit is contained in:
BIN
GitCompanion.ico
Normal file
BIN
GitCompanion.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.0 KiB |
BIN
GitCompanion.png
Normal file
BIN
GitCompanion.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
19
main2.pb
19
main2.pb
@@ -2233,7 +2233,11 @@ Procedure Main()
|
|||||||
For n = 0 To CountProgramParameters() - 1
|
For n = 0 To CountProgramParameters() - 1
|
||||||
param$ = ProgramParameter(n)
|
param$ = ProgramParameter(n)
|
||||||
Select LCase(param$)
|
Select LCase(param$)
|
||||||
Case "--project" : If n + 1 < CountProgramParameters() : main\GitCall\workdir = ProgramParameter(n + 1) : EndIf
|
Case "--path"
|
||||||
|
If n + 1 < CountProgramParameters()
|
||||||
|
main\GitCall\workdir = GetPathPart(ProgramParameter(n + 1))
|
||||||
|
|
||||||
|
EndIf
|
||||||
EndSelect
|
EndSelect
|
||||||
Next n
|
Next n
|
||||||
EndIf
|
EndIf
|
||||||
@@ -2326,11 +2330,18 @@ Procedure Main()
|
|||||||
Case #GID_BtnInit
|
Case #GID_BtnInit
|
||||||
GitInit()
|
GitInit()
|
||||||
RefreshHelp()
|
RefreshHelp()
|
||||||
|
Refresh()
|
||||||
|
|
||||||
Case #GID_BtnRefresh
|
Case #GID_BtnRefresh
|
||||||
Refresh()
|
Refresh()
|
||||||
RefreshHelp()
|
RefreshHelp()
|
||||||
|
|
||||||
|
Case #GID_EdRemote
|
||||||
|
If EventType()=#PB_EventType_LostFocus
|
||||||
|
AddRemoteRepo(SupTrim(GetGadgetText(#GID_EdRemote)))
|
||||||
|
Refresh()
|
||||||
|
RefreshHelp()
|
||||||
|
EndIf
|
||||||
Case #GID_BtnClone
|
Case #GID_BtnClone
|
||||||
SetGadgetText(#GID_TxtAction, T("Action.Clone","Clone demandé"))
|
SetGadgetText(#GID_TxtAction, T("Action.Clone","Clone demandé"))
|
||||||
; TODO: git clone
|
; TODO: git clone
|
||||||
@@ -2385,9 +2396,11 @@ EndProcedure
|
|||||||
Main()
|
Main()
|
||||||
|
|
||||||
; IDE Options = PureBasic 6.21 (Windows - x64)
|
; IDE Options = PureBasic 6.21 (Windows - x64)
|
||||||
; CursorPosition = 2370
|
; CursorPosition = 2340
|
||||||
; FirstLine = 2311
|
; FirstLine = 2308
|
||||||
; Folding = ----------
|
; Folding = ----------
|
||||||
; EnableThread
|
; EnableThread
|
||||||
; EnableXP
|
; EnableXP
|
||||||
; DPIAware
|
; DPIAware
|
||||||
|
; UseIcon = GitCompanion.ico
|
||||||
|
; Executable = GitCompanion.exe
|
Reference in New Issue
Block a user