Remi05 / outlines

An app to help review your UI implementation.
MIT License
7 stars 0 forks source link

[Live Inspector] Cleanup MultiWindowLiveInspector state #87

Open Remi05 opened 2 years ago

Remi05 commented 2 years ago

Currently, if MultiWindowLiveInspector.Close() is called, the instance of MultiWindowLiveInspector is left in an invalid state. We should refactor MultiWindowLiveInspector to always be in a valid state. Binding the lifetime of MultiWindowLiveInspector to the state of the windows doesn't seem to work well, so we probably want to support MultiWindowLiveInspector being in an uninitialized state (before Show is called or after Closed is called). For example we could move initialization of MultiWindowLiveInspector to its Show method and cleanup when its Close method is called.

Expected behavior: