added enable/disable for Routines for current Bkup run. show/hide sources/destinations by enabled status
This commit is contained in:
13
shared.nim
13
shared.nim
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user