added enable/disable for Routines for current Bkup run. show/hide sources/destinations by enabled status
This commit is contained in:
@@ -184,4 +184,13 @@ proc clear*(model: RoutineModel) =
|
||||
model.db.exec("DELETE FROM Routine")
|
||||
|
||||
# Update RoutineModel.routines
|
||||
model.routines.clear()
|
||||
model.routines.clear()
|
||||
|
||||
#preload the selected seq with routines that have selByDef == true.
|
||||
proc selectedPreload*(): seq[RoutineId] =
|
||||
var selected: seq[RoutineId]
|
||||
let model = newRoutineModel(databasePath)
|
||||
for routine in model.routineSeq():
|
||||
if routine.selByDef == true:
|
||||
selected.add(routine.id)
|
||||
return selected
|
||||
Reference in New Issue
Block a user