Merge branch 'breakout_status_and_bkup_btn'
This commit is contained in:
commit
4ce99e89a4
|
@ -92,6 +92,10 @@ proc rsyncThread(list: RoutineListState) {.thread.} =
|
|||
|
||||
method view(list: RoutineListState): Widget =
|
||||
result = gui:
|
||||
Box:
|
||||
orient = OrientY
|
||||
Box:
|
||||
orient = OrientY
|
||||
ScrolledWindow:
|
||||
Box:
|
||||
orient = OrientY
|
||||
|
@ -193,6 +197,25 @@ method view(list: RoutineListState): Widget =
|
|||
text = "<span color=\"#ff6b6b\">Routine will be ignored. Destination required.</span>"
|
||||
xAlign = 0
|
||||
useMarkup = true
|
||||
else:
|
||||
Box {.expand: false.}:
|
||||
orient = OrientY
|
||||
margin = 6
|
||||
spacing = 12
|
||||
Label:
|
||||
text = "<span size=\"large\">You don't have any Bkup Routines!!! 🙂</span>"
|
||||
xAlign = 0
|
||||
useMarkup = true
|
||||
Label:
|
||||
text = "<span size=\"large\">Please click on the + Routine button above to create your first Routine.</span>"
|
||||
xAlign = 0
|
||||
useMarkup = true
|
||||
|
||||
if list.routineModel.routineSeq().len() > 0:
|
||||
Box {.expand: false.}:
|
||||
orient = OrientY
|
||||
Box {.expand: false.}:
|
||||
orient = OrientY
|
||||
Box {.expand: false.}:
|
||||
orient = OrientX
|
||||
spacing = 6
|
||||
|
@ -238,7 +261,12 @@ method view(list: RoutineListState): Widget =
|
|||
list.runStatus = "<span color=\"#ff6b6b\" size=\"large\">Missing Source(s)/Destination(s) in selected Routine(s).</span>"
|
||||
else:
|
||||
createThread(thread, rsyncThread, list)
|
||||
else:
|
||||
|
||||
#[if not list.routineModel.routineSeq().len() > 0:
|
||||
Box:
|
||||
orient = OrientX
|
||||
spacing = 6
|
||||
margin = 6
|
||||
Box {.expand: false.}:
|
||||
orient = OrientY
|
||||
margin = 6
|
||||
|
@ -250,5 +278,5 @@ method view(list: RoutineListState): Widget =
|
|||
Label:
|
||||
text = "<span size=\"large\">Please click on the + Routine button above to create your first Routine.</span>"
|
||||
xAlign = 0
|
||||
useMarkup = true
|
||||
useMarkup = true]#
|
||||
export RoutineList
|
||||
|
|
Loading…
Reference in New Issue