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,9 +27,11 @@ HostButton::HostButton(Widget* parent, const std::string &address): Button(paren
|
|||
m_host_status_icon = FA_POWER_OFF;
|
||||
}
|
||||
|
||||
if (ref_count() > 1) {
|
||||
if (auto scr = screen()) {
|
||||
scr->perform_layout();
|
||||
}
|
||||
}
|
||||
|
||||
dec_ref();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue