Main: more robust error handling.

Previously, the editor would panic at any error. After I recently
implemented dialogs, I changed all panics to create error dialogs,
instead. This will make the editor more stable.
This commit is contained in:
Luke I. Wilson
2021-04-02 14:30:38 -05:00
parent f64af6fa29
commit d1dd389dba
2 changed files with 132 additions and 94 deletions

View File

@@ -10,7 +10,7 @@ import (
//
// Many components implement their own `New...()` function. In those constructor
// functions, it is good practice for that component to set its size to be its
// minimum size. TODO: implement that behavior
// minimum size.
type Component interface {
// A component knows its position and size, which is used to draw itself in
// its bounding rectangle.