Skip to content

Commit 1d048d9

Browse files
committed
BUG: Do not move the Tables window if the initial position has not been loaded from disk.
1 parent 4e3a02b commit 1d048d9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

enaml_debug/debug_ui.enaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import casuarius
22
from enaml.stdlib.fields import FloatField
33
from enaml.layout.geometry import Pos, Rect
4+
from enaml.core.base_component import UninitializedAttributeError
45

56
from enaml_debug.debug_layout import (ComponentModel, ConstraintsModel,
67
ConstraintsOverlay, DebugLayout, DebugModel, ViewOutlines, debugize_container,
@@ -16,7 +17,10 @@ enamldef Tables(MainWindow):
1617
attr constraints_model : ConstraintsModel = ConstraintsModel(model)
1718

1819
initialized ::
19-
self.move(self.initial_pos)
20+
try:
21+
self.move(self.initial_pos)
22+
except UninitializedAttributeError:
23+
pass
2024

2125
title = u'Components and Constraints'
2226
Splitter:

0 commit comments

Comments
 (0)