Commit 004c5c2
committed
UIService: Do *not* conflate the 'initialized' and 'disposed' flags
Earlier, this developer tried to be smart (failing) and reuse the
'initialized' flag to indicate whether to show the user interface
or not. However, that flag did not indicate whether the initialize()
method was run yet, but whether the service's lazy initialization was
already performed or not.
Let's just have a separate flag to indicate whether the context was
disposed or not.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>1 parent 3087de7 commit 004c5c2
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
137 | 140 | | |
138 | 141 | | |
139 | 142 | | |
| |||
154 | 157 | | |
155 | 158 | | |
156 | 159 | | |
157 | | - | |
| 160 | + | |
158 | 161 | | |
159 | 162 | | |
160 | 163 | | |
| |||
358 | 361 | | |
359 | 362 | | |
360 | 363 | | |
361 | | - | |
| 364 | + | |
362 | 365 | | |
363 | 366 | | |
364 | 367 | | |
| |||
0 commit comments