File tree Expand file tree Collapse file tree 3 files changed +207
-180
lines changed Expand file tree Collapse file tree 3 files changed +207
-180
lines changed Original file line number Diff line number Diff line change @@ -159,6 +159,8 @@ class _RegularWindowState extends State<RegularWindow> {
159159
160160 @override
161161 Future <void > dispose () async {
162+ super .dispose ();
163+
162164 if (_listener != null ) {
163165 assert (_app != null );
164166 _app! ._unregisterListener (_listener! );
@@ -168,13 +170,11 @@ class _RegularWindowState extends State<RegularWindow> {
168170 // we need to destroy the window on our way out.
169171 if (! _hasBeenDestroyed && _viewId != null ) {
170172 // In the event of an argument error, we do nothing. We assume that
171- // the window has been successfully destroyed somehow else.
173+ // the window has been successfully destroyed somehow else.
172174 try {
173175 await destroyWindow (_viewId! );
174176 } on ArgumentError {}
175177 }
176-
177- super .dispose ();
178178 }
179179
180180 @override
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments