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 =
|
method view(list: RoutineListState): Widget =
|
||||||
result = gui:
|
result = gui:
|
||||||
|
Box:
|
||||||
|
orient = OrientY
|
||||||
|
Box:
|
||||||
|
orient = OrientY
|
||||||
ScrolledWindow:
|
ScrolledWindow:
|
||||||
Box:
|
Box:
|
||||||
orient = OrientY
|
orient = OrientY
|
||||||
|
@ -193,6 +197,25 @@ method view(list: RoutineListState): Widget =
|
||||||
text = "<span color=\"#ff6b6b\">Routine will be ignored. Destination required.</span>"
|
text = "<span color=\"#ff6b6b\">Routine will be ignored. Destination required.</span>"
|
||||||
xAlign = 0
|
xAlign = 0
|
||||||
useMarkup = true
|
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.}:
|
Box {.expand: false.}:
|
||||||
orient = OrientX
|
orient = OrientX
|
||||||
spacing = 6
|
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>"
|
list.runStatus = "<span color=\"#ff6b6b\" size=\"large\">Missing Source(s)/Destination(s) in selected Routine(s).</span>"
|
||||||
else:
|
else:
|
||||||
createThread(thread, rsyncThread, list)
|
createThread(thread, rsyncThread, list)
|
||||||
else:
|
|
||||||
|
#[if not list.routineModel.routineSeq().len() > 0:
|
||||||
|
Box:
|
||||||
|
orient = OrientX
|
||||||
|
spacing = 6
|
||||||
|
margin = 6
|
||||||
Box {.expand: false.}:
|
Box {.expand: false.}:
|
||||||
orient = OrientY
|
orient = OrientY
|
||||||
margin = 6
|
margin = 6
|
||||||
|
@ -250,5 +278,5 @@ method view(list: RoutineListState): Widget =
|
||||||
Label:
|
Label:
|
||||||
text = "<span size=\"large\">Please click on the + Routine button above to create your first Routine.</span>"
|
text = "<span size=\"large\">Please click on the + Routine button above to create your first Routine.</span>"
|
||||||
xAlign = 0
|
xAlign = 0
|
||||||
useMarkup = true
|
useMarkup = true]#
|
||||||
export RoutineList
|
export RoutineList
|
||||||
|
|
Loading…
Reference in New Issue