mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
made the 'add account' popup box actually pop up to the foreground
This commit is contained in:
parent
7578743b74
commit
56fcc496cf
2 changed files with 8 additions and 1 deletions
|
@ -1,6 +1,9 @@
|
|||
#include "widgets/logindialog.hpp"
|
||||
#include "common.hpp"
|
||||
#include "util/urlfetch.hpp"
|
||||
#if FMT_USE_WINDOWS_H
|
||||
#include <Windows.h>
|
||||
#endif
|
||||
|
||||
#include <QClipboard>
|
||||
#include <QDebug>
|
||||
|
@ -187,6 +190,10 @@ void AdvancedLoginWidget::refreshButtons()
|
|||
|
||||
LoginWidget::LoginWidget()
|
||||
{
|
||||
#if FMT_USE_WINDOWS_H
|
||||
::SetWindowPos((HWND)this->winId(), HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW);
|
||||
#endif
|
||||
|
||||
this->setLayout(&this->ui.mainLayout);
|
||||
|
||||
this->ui.mainLayout.addWidget(&this->ui.tabWidget);
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
#include "widgets/logindialog.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include <QDialogButtonBox>
|
||||
#include <QHeaderView>
|
||||
#include <QTableView>
|
||||
|
@ -37,6 +36,7 @@ AccountsPage::AccountsPage()
|
|||
static auto loginWidget = new LoginWidget();
|
||||
|
||||
loginWidget->show();
|
||||
loginWidget->raise();
|
||||
});
|
||||
|
||||
view->getTableView()->setStyleSheet("background: #333");
|
||||
|
|
Loading…
Reference in a new issue