|
|
|
@ -8,7 +8,6 @@ import "models/routine", "shared" |
|
|
|
|
import views/[edit_routine_dialog, routine_list, app_menu_button] |
|
|
|
|
|
|
|
|
|
const APP_NAME = "EZ-Bkup" |
|
|
|
|
#let databasePath = appPath & "/ez-bkup.sqlite" |
|
|
|
|
|
|
|
|
|
viewable App: |
|
|
|
|
## The main application |
|
|
|
@ -65,6 +64,7 @@ method view(app: AppState): Widget {.locks: "unknown".} = |
|
|
|
|
when isMainModule: |
|
|
|
|
# Entry point for the application. |
|
|
|
|
# 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)), icons=["icons/"], stylesheets=[loadStylesheet("styles.css")]) |
|
|
|
|
|