Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V1.6.x #1

Merged
merged 9 commits into from
Nov 18, 2020
Prev Previous commit
Next Next commit
qt: avoid auto-updating window width when it's in full screen or when…
… it's maximized (#3771)
  • Loading branch information
UdjinM6 authored and charlesrocket committed Nov 16, 2020
commit 76dc439402ee664ade01beab95ccb9a38427f1ad
3 changes: 3 additions & 0 deletions src/qt/bitcoingui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1180,6 +1180,9 @@ void BitcoinGUI::updateWidth()
if (walletFrame == nullptr) {
return;
}
if (windowState() & (Qt::WindowMaximized | Qt::WindowFullScreen)) {
return;
}
int nWidthWidestButton{0};
int nButtonsVisible{0};
for (QAbstractButton* button : tabGroup->buttons()) {
Expand Down