mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-09 23:34:20 +00:00
UIViewComponentPeer: Avoid sending unnecessary UIWindowScene change notifications
This commit is contained in:
parent
87cec3b743
commit
d66ca542b8
1 changed files with 2 additions and 2 deletions
|
|
@ -53,8 +53,8 @@ public:
|
||||||
|
|
||||||
void setWindowScene (UIWindowScene* x) API_AVAILABLE (ios (13.0))
|
void setWindowScene (UIWindowScene* x) API_AVAILABLE (ios (13.0))
|
||||||
{
|
{
|
||||||
windowScene = x;
|
if (std::exchange (windowScene, x) != x)
|
||||||
listeners.call ([] (auto& l) { l.windowSceneChanged(); });
|
listeners.call ([] (auto& l) { l.windowSceneChanged(); });
|
||||||
}
|
}
|
||||||
|
|
||||||
UIWindowScene* getWindowScene() const API_AVAILABLE (ios (13.0))
|
UIWindowScene* getWindowScene() const API_AVAILABLE (ios (13.0))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue