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:
@@ -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()));
|
||||
|
||||
@@ -509,6 +509,8 @@ void GeneralPage::initLayout(SettingsLayout &layout)
|
||||
s.mentionUsersWithComma);
|
||||
layout.addCheckbox("Show joined users (< 1000 chatters)", s.showJoins);
|
||||
layout.addCheckbox("Show parted users (< 1000 chatters)", s.showParts);
|
||||
layout.addCheckbox("Automatically close user popup when it loses focus",
|
||||
s.autoCloseUserPopup);
|
||||
layout.addCheckbox("Lowercase domains (anti-phishing)", s.lowercaseDomains);
|
||||
layout.addCheckbox("Bold @usernames", s.boldUsernames);
|
||||
layout.addCheckbox("Try to find usernames without @ prefix",
|
||||
|
||||
Reference in New Issue
Block a user