mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 07:27:41 -06:00
FIX:search dialog cannot open
reason:search_line window modified by darkmode-commit Change-Id: I1a6c58362b2d1eff506b62a97d908b95dc591ff9
This commit is contained in:
parent
b65d47b544
commit
56a98390f9
1 changed files with 2 additions and 3 deletions
|
@ -639,10 +639,9 @@ void SearchDialog::OnDismiss() { }
|
||||||
void SearchDialog::Dismiss()
|
void SearchDialog::Dismiss()
|
||||||
{
|
{
|
||||||
auto pos = wxGetMousePosition();
|
auto pos = wxGetMousePosition();
|
||||||
|
auto focus_window = wxWindow::FindFocus();
|
||||||
if (!search_line->HasFocus() && !this->HasFocus()) {
|
if (!focus_window)
|
||||||
Die();
|
Die();
|
||||||
}
|
|
||||||
else if (!m_event_tag->GetScreenRect().Contains(pos) && !this->GetScreenRect().Contains(pos) && !m_search_item_tag->GetScreenRect().Contains(pos)) {
|
else if (!m_event_tag->GetScreenRect().Contains(pos) && !this->GetScreenRect().Contains(pos) && !m_search_item_tag->GetScreenRect().Contains(pos)) {
|
||||||
Die();
|
Die();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue