File tree Expand file tree Collapse file tree 1 file changed +17
-17
lines changed
native/Avalonia.Native/src/OSX Expand file tree Collapse file tree 1 file changed +17
-17
lines changed Original file line number Diff line number Diff line change 90
90
if (_parent != nullptr )
91
91
{
92
92
_parent->_children .remove (this );
93
- auto parent = _parent;
94
93
95
- dispatch_async (dispatch_get_main_queue (), ^{
96
- parent->BringToFront ();
97
- });
94
+ _parent->BringToFront ();
98
95
}
99
96
100
97
auto cparent = dynamic_cast <WindowImpl *>(parent);
121
118
122
119
void WindowImpl::BringToFront ()
123
120
{
124
- if (IsDialog () )
121
+ if (Window != nullptr )
125
122
{
126
- Activate ();
127
- }
128
- else
129
- {
130
- [Window orderFront: nullptr ];
131
- }
132
-
133
- [Window invalidateShadow ];
134
-
135
- for (auto iterator = _children.begin (); iterator != _children.end (); iterator++)
136
- {
137
- (*iterator)->BringToFront ();
123
+ if (IsDialog ())
124
+ {
125
+ Activate ();
126
+ }
127
+ else
128
+ {
129
+ [Window orderFront: nullptr ];
130
+ }
131
+
132
+ [Window invalidateShadow ];
133
+
134
+ for (auto iterator = _children.begin (); iterator != _children.end (); iterator++)
135
+ {
136
+ (*iterator)->BringToFront ();
137
+ }
138
138
}
139
139
}
140
140
You can’t perform that action at this time.
0 commit comments