mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Fixed /usercard on linux (#1755)
- /usercard command doesn't close imidiatelly - removed "Dialog" window flag. It seems to be unnecessary and causes issues (on left-clicking user name it sometimes didnt render unless you clicked 2-3 times.
This commit is contained in:
parent
ddd4a54e0e
commit
205d658f80
2 changed files with 0 additions and 4 deletions
|
@ -453,7 +453,6 @@ QString CommandController::execCommand(const QString &textNoEmoji,
|
||||||
}
|
}
|
||||||
auto *userPopup = new UserInfoPopup;
|
auto *userPopup = new UserInfoPopup;
|
||||||
userPopup->setData(words[1], channel);
|
userPopup->setData(words[1], channel);
|
||||||
userPopup->setActionOnFocusLoss(BaseWindow::Delete);
|
|
||||||
userPopup->move(QCursor::pos());
|
userPopup->move(QCursor::pos());
|
||||||
userPopup->show();
|
userPopup->show();
|
||||||
return "";
|
return "";
|
||||||
|
|
|
@ -92,9 +92,6 @@ UserInfoPopup::UserInfoPopup()
|
||||||
{
|
{
|
||||||
this->setWindowTitle("Usercard");
|
this->setWindowTitle("Usercard");
|
||||||
this->setStayInScreenRect(true);
|
this->setStayInScreenRect(true);
|
||||||
#ifdef Q_OS_LINUX
|
|
||||||
this->setWindowFlag(Qt::Dialog);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Close the popup when Escape is pressed
|
// Close the popup when Escape is pressed
|
||||||
createWindowShortcut(this, "Escape", [this] { this->deleteLater(); });
|
createWindowShortcut(this, "Escape", [this] { this->deleteLater(); });
|
||||||
|
|
Loading…
Reference in a new issue