added enable/disable for Routines for current Bkup run. show/hide sources/destinations by enabled status

This commit is contained in:
itwrx
2023-06-29 07:09:23 -05:00
parent 22abe65ab0
commit e7e156868e
5 changed files with 42 additions and 25 deletions

View File

@@ -4,19 +4,10 @@ EZ-Bkup is released under the General Public License 3.0.
See COPYING or <https://www.gnu.org/licenses/> for details.]#
import logging, times, os, distros
#import "models/routine"
#store the RoutineIds of ea. Routine selected for the current Bkup run.
#[type SelectedRoutine* = object
id*: RoutineId
name*: string
sources*: seq[string]
destinations*: seq[string]
type CurrentRun* = object
status*: string]#
import "models/routine"
let appPath* = getHomeDir() & ".ez-bkup"
let databasePath* = appPath & "/ez-bkup.sqlite"
if not dirExists(appPath):
createDir(appPath)