refactor: some mini feature changes in BaseWindow (#6074)
This commit is contained in:
@@ -88,20 +88,14 @@ void WindowManager::showSettingsDialog(QWidget *parent,
|
||||
|
||||
void WindowManager::showAccountSelectPopup(QPoint point)
|
||||
{
|
||||
// static QWidget *lastFocusedWidget = nullptr;
|
||||
static AccountSwitchPopup *w = new AccountSwitchPopup();
|
||||
static auto *w = new AccountSwitchPopup;
|
||||
|
||||
if (w->hasFocus())
|
||||
{
|
||||
w->hide();
|
||||
// if (lastFocusedWidget) {
|
||||
// lastFocusedWidget->setFocus();
|
||||
// }
|
||||
return;
|
||||
}
|
||||
|
||||
// lastFocusedWidget = this->focusWidget();
|
||||
|
||||
w->refresh();
|
||||
|
||||
w->moveTo(point - QPoint(30, 0), widgets::BoundsChecking::CursorPosition);
|
||||
|
||||
Reference in New Issue
Block a user