refactor: some mini feature changes in BaseWindow (#6074)

This commit is contained in:
pajlada
2025-03-13 22:20:03 +01:00
committed by GitHub
parent 55031c5108
commit fb375e149b
10 changed files with 86 additions and 68 deletions
+1 -7
View File
@@ -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);