Commit 77fd361c authored by obscuren's avatar obscuren

Error window

parent 09c7d158
package main
import (
"fmt"
"os"
"runtime"
......@@ -31,18 +30,6 @@ func run() error {
db := utils.NewDatabase()
err := utils.DBSanityCheck(db)
if err != nil {
engine := qml.NewEngine()
component, e := engine.LoadString("local", qmlErr)
if e != nil {
fmt.Println("err:", err)
os.Exit(1)
}
win := component.CreateWindow(nil)
win.Root().ObjectByName("label").Set("text", err.Error())
win.Show()
win.Wait()
ErrorWindow(err)
os.Exit(1)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment