mirror of
https://github.com/rock88/moonlight-nx
synced 2024-11-22 11:33:11 +00:00
Fix crash here...
This commit is contained in:
parent
4d3097af1b
commit
afbe5d9417
1 changed files with 4 additions and 2 deletions
|
@ -27,8 +27,10 @@ HostButton::HostButton(Widget* parent, const std::string &address): Button(paren
|
||||||
m_host_status_icon = FA_POWER_OFF;
|
m_host_status_icon = FA_POWER_OFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (auto scr = screen()) {
|
if (ref_count() > 1) {
|
||||||
scr->perform_layout();
|
if (auto scr = screen()) {
|
||||||
|
scr->perform_layout();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dec_ref();
|
dec_ref();
|
||||||
|
|
Loading…
Reference in a new issue