Commit 24748d62 authored by verdre's avatar verdre

appDisplay: Check instanceof AppIcon using constructor inside AppIcon

It seems like some recent change broke the check whether the drag source
is an instance of AppIcon. While the drag source indeed is an AppIcon
and everything else works correctly, the check still returns false.

Theoretically it makes sense that this doesn't work, because we're
assigning AppIcon using `var AppIcon =` and that will only get set after
`GObject.register_class()` finished, so accessing `AppIcon` inside that
function seems risky and is probably wrong, but that doesn't really
explain why it suddenly broke.

Anyway, fix it by comparing to `this.constructor` instead of `AppIcon`,
which works and we know for sure exists at this point.
parent fa1b7a9e
Pipeline #127116 passed with stages
in 5 minutes and 17 seconds