Skip to content

Commit 5435b61

Browse files
committed
compare deice lists instead of just size
1 parent a266138 commit 5435b61

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

ide-common/src/main/kotlin/org/digma/intellij/plugin/reload/ReloadObserver.kt

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -221,22 +221,6 @@ class ReloadObserver(cs: CoroutineScope) {
221221
override fun propertyChange(evt: PropertyChangeEvent) {
222222
if (evt.propertyName == "graphicsConfiguration") {
223223
Log.log(logger::trace, "got PropertyChangeEvent for {}, event {}, component details {}", componentName, evt, componentDetails)
224-
225-
//componentDetails.graphicDevice may be null on startup so run the event,
226-
// but if it's not null and new value or old value are null this only means that the component
227-
// becomes visible or hidden
228-
if (componentDetails.graphicDevice != null) {
229-
if (evt.oldValue == null || evt.newValue == null) {
230-
Log.log(
231-
logger::trace,
232-
"not adding event because old value or new value is null in PropertyChangeEvent for {}, event {}",
233-
componentName,
234-
evt
235-
)
236-
return
237-
}
238-
}
239-
240224
//putting the events in a queue ensures we process them in the order they arrive.
241225
//just launching a coroutine here does not guarantee order and may cause wrong decisions
242226
//about reloading

0 commit comments

Comments
 (0)