Added setting to auto close user popup (#1833)

* Set autoclose as true by default to match stable version (2.1.7) behavior
This commit is contained in:
mmb L
2020-08-08 20:43:26 +08:00
committed by GitHub
parent db666c4946
commit 208f9b093c
3 changed files with 7 additions and 0 deletions
+4
View File
@@ -1817,6 +1817,10 @@ void ChannelView::hideEvent(QHideEvent *)
void ChannelView::showUserInfoPopup(const QString &userName)
{
auto *userPopup = new UserInfoPopup;
if (getSettings()->autoCloseUserPopup)
{
userPopup->setActionOnFocusLoss(BaseWindow::Delete);
}
userPopup->setData(userName, this->hasSourceChannel() ? this->sourceChannel_
: this->channel_);
QPoint offset(int(150 * this->scale()), int(70 * this->scale()));