mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
properly unminimize
This commit is contained in:
parent
f2cc486744
commit
37a5c637f5
|
@ -329,8 +329,7 @@ void Widget::changeEvent(QEvent *event)
|
|||
{
|
||||
if (event->type() == QEvent::WindowStateChange)
|
||||
{
|
||||
if(isMinimized() == true
|
||||
&& Settings::getInstance().getMinimizeToTray() == true)
|
||||
if(isMinimized() && Settings::getInstance().getMinimizeToTray())
|
||||
{
|
||||
this->hide();
|
||||
}
|
||||
|
@ -770,6 +769,8 @@ void Widget::newMessageAlert(GenericChatroomWidget* chat)
|
|||
if ((isMinimized() || !isActiveWindow()) && Settings::getInstance().getShowInFront())
|
||||
{
|
||||
this->show();
|
||||
showNormal();
|
||||
activateWindow();
|
||||
emit chat->chatroomWidgetClicked(chat);
|
||||
}
|
||||
static QByteArray sndData;
|
||||
|
|
Loading…
Reference in New Issue
Block a user