diff --git a/CHANGELOG.md b/CHANGELOG.md index 73dec4c..47e7097 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.9.8 - 7-5-23 +### Added +- Added icons and css paths that work with installed version in ez_bkup.nim. (ITwrx) +### Changed +- Made some file names more uniform. (ITwrx) +- Re-added selectedPreload proc accidentally removed from Routine.nim in last release. (ITwrx) +- Updated EZ-Bkup version in app_menu_button.nim and ez_bkup.desktop (included with installer in the funded release). (ITwrx) + ## 0.9.7 - 7-1-23 ### Added - Added check that sources actually got copied to destination(s) prior to showing success msg. (ITwrx) diff --git a/ez_bkup.nim b/ez_bkup.nim index 1665e02..278e13e 100644 --- a/ez_bkup.nim +++ b/ez_bkup.nim @@ -20,7 +20,7 @@ method view(app: AppState): Widget = defaultSize = (1024, 768) HeaderBar {.addTitlebar.}: Icon {.addLeft.}: - name = "EZ-Bkup-icon" + name = "ez_bkup" pixelSize = 40 margin = 4 # Button to open the main menu @@ -66,5 +66,8 @@ when isMainModule: # Loads the model from the database and starts the application. #databasePath is coming from shared.nim let model = newRoutineModel(databasePath) - brew("org.itwrx.EZ-Bkup", gui(App(routineModel = model)), darkTheme = true, icons=["icons/"], stylesheets=[loadStylesheet("styles.css")]) + #if running manually from src directory. + #brew("org.itwrx.EZ-Bkup", gui(App(routineModel = model)), darkTheme = true, icons=["icons/"], stylesheets=[loadStylesheet("styles.css")]) + #if installed. + brew("org.itwrx.EZ-Bkup", gui(App(routineModel = model)), darkTheme = true, icons=["/usr/local/share/ez_bkup/icons/"], stylesheets=[loadStylesheet("/usr/local/share/ez_bkup/styles.css")]) \ No newline at end of file diff --git a/icons/EZ-Bkup-icon.png b/icons/EZ-Bkup-icon.png deleted file mode 100644 index 8834ba8..0000000 Binary files a/icons/EZ-Bkup-icon.png and /dev/null differ diff --git a/models/routine.nim b/models/routine.nim index 4fdd74c..238dece 100644 --- a/models/routine.nim +++ b/models/routine.nim @@ -184,4 +184,13 @@ proc delete*(model: RoutineModel, id: RoutineId) = model.db.exec("DELETE FROM Routine WHERE id = ?", id) # Update RoutineModel.routines - model.routines.del(id) \ No newline at end of file + model.routines.del(id) + +#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 \ No newline at end of file diff --git a/views/app_menu_button.nim b/views/app_menu_button.nim index 6a73153..cafa5d2 100644 --- a/views/app_menu_button.nim +++ b/views/app_menu_button.nim @@ -29,9 +29,9 @@ method view(button: AppMenuButtonState): Widget = discard button.app.open: gui: AboutDialog: programName = "EZ-Bkup" - logo = "EZ-Bkup-icon" + logo = "ez_bkup" style = [StyleClass("about-dialog")] - version = "0.9.7" + version = "0.9.8" credits = @{ "Created By": @["https://ITwrx.org"], "License": @["GPLv3"]