use different window frame for user popup based on the setting

This commit is contained in:
fourtf
2020-08-13 17:17:53 +02:00
parent b2ae2e598f
commit 6f4f66b9d0
4 changed files with 13 additions and 9 deletions
+1 -5
View File
@@ -1820,11 +1820,7 @@ void ChannelView::hideEvent(QHideEvent *)
void ChannelView::showUserInfoPopup(const QString &userName)
{
auto *userPopup = new UserInfoPopup;
if (getSettings()->autoCloseUserPopup)
{
userPopup->setActionOnFocusLoss(BaseWindow::Delete);
}
auto *userPopup = new UserInfoPopup(getSettings()->autoCloseUserPopup);
userPopup->setData(userName, this->hasSourceChannel() ? this->sourceChannel_
: this->channel_);
QPoint offset(int(150 * this->scale()), int(70 * this->scale()));