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

Save window size correctly #661

Merged
merged 2 commits into from
Sep 27, 2020
Merged

Save window size correctly #661

merged 2 commits into from
Sep 27, 2020

Conversation

samuel-w
Copy link
Contributor

Fixes case where main window gets larger every time Vorta is opened.

@sudwhiwdh
Copy link

What about saving and restoring the window state across sessions as well?

@samuel-w
Copy link
Contributor Author

I don't understand what you mean. The bug is caused by the frameGeometry() taking into account the title bar, which adds to the height.

print(f'{self.frameGeometry().width()},{self.frameGeometry().height()}')
print(f'{self.width()},{self.height()}')

Results

800,629
800,600

@m3nu m3nu merged commit 38406f4 into borgbase:master Sep 27, 2020
@samuel-w samuel-w deleted the resize_window branch September 27, 2020 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants