updates for installable version
This commit is contained in:
parent
c37891ede9
commit
96c84fe983
|
@ -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)
|
||||
|
|
|
@ -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")])
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 2.2 KiB |
|
@ -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)
|
||||
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
|
|
@ -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"]
|
||||
|
|
Loading…
Reference in New Issue