Skip to content

Remove window size/position restoration on help and about windows - #5772

Closed
ghost wants to merge 0 commit into
masterfrom
unknown repository
Closed

ghost wants to merge 0 commit into
masterfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Feb 8, 2015

Copy link
Copy Markdown

Removes the unecessary function to restore the about window size and
location for the about window when reopening the window.

Currently the window size and location is restored even after
application restart.

@jonasschnelli

Copy link
Copy Markdown
Contributor

I didn't test, but the debug / rpc console has somehow the same code basis. I assume this PR will no longer store the position of the debug window as well?
Maybe you should take a look at HelpMessageDialog::HelpMessageDialog about boolean.

@jonasschnelli

Copy link
Copy Markdown
Contributor

conceptional ACK on not storing the about window geometries.

@ghost

ghost commented Feb 8, 2015

Copy link
Copy Markdown
Author

@jonasschnelli I believe that does include the debug window as it currently is. If it's a big deal to remove the functionality for the debug window, would there be any issue with splitting help message (i.e. the debug window) and about messages in to two classes? I see only six references (not including translation files) to HelpMessageDialog.

@ghost ghost changed the title Removes window size/position restoration on reopen Removes window size/position restoration on window and app reopen Feb 8, 2015
@Diapolo

Diapolo commented Feb 9, 2015

Copy link
Copy Markdown

Why? And also it's not sufficient to just remove the restoration code but also the save code...

Comment thread src/qt/utilitydialog.cpp Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you remove this line? This will not work.

@jonasschnelli

Copy link
Copy Markdown
Contributor

At the destructor HelpMessageDialog::~HelpMessageDialog() you must also make sure, geometry gets stored only if about==false. You can add a fAbout as private instance variable.

@Michagogo

Copy link
Copy Markdown
Contributor

NAK on discarding debug window size/location. Indifferent regarding the about window (will this also affect the command line options window?), but the debug window is one which can actually be useful and which a user might reasonably want to have in a fixed location and not have to reposition it each time.

@jonasschnelli

Copy link
Copy Markdown
Contributor

@Michagogo no no.
The Help- (command line) and Debug-window will keep storing the position.
This commit (jonasschnelli@a16b79b) would only affect the about window. No others.
I try to guide @L-Cranston-Shadow into this direction.

Not storing other windows geometry would be stupid. But the about window really don't need stored window geometries. The about window looks better without storing geometries and more like the "About Qt" window.

@Michagogo

Copy link
Copy Markdown
Contributor

@jonasschnelli That commit sounds good, yeah. That's not what this PR is right now, though.

@laanwj laanwj added the GUI label Feb 9, 2015
@laanwj

laanwj commented Feb 9, 2015

Copy link
Copy Markdown
Member

Concept ACK - but please adapt your commit message to make it clear that only the HelpMessage/About dialog is affected and not every window. That kind of confused me and I see I'm not the only one.

@ghost ghost changed the title Removes window size/position restoration on window and app reopen Removes window size/position restoration on help and about window and app reopen Feb 9, 2015
@ghost ghost changed the title Removes window size/position restoration on help and about window and app reopen Remove window size/position restoration on help and about windows Feb 9, 2015
@ghost

ghost commented Feb 9, 2015

Copy link
Copy Markdown
Author

Sorry for the delay in replying,

@Diapolo It was unclear in my original title but this PR is targeted specifically at the about window. The reasoning behind it was that the functionality of restoring the window size and position when reopening is unecessary so I, foolishly in retrospect, thought it would be a good way to dip my feet into both contributing to the project and getting back into C++.

@jonasschnelli Removing that extra line was a mistake, I'll make sure to re-add it

@laanwj Thanks, I renamed the PR and I'll use a better summary for the next commit

Everyone, I'll try to get a new commit up soon on this, I'm a little bit out of my depth both in terms of the specific code and the programming, some of which is stuff that I learned and I am having to pretty much relearn/remember or never learned and am having to teach myself on, so please bear with me.

@laanwj

laanwj commented Feb 9, 2015

Copy link
Copy Markdown
Member

Oops. Something went wrong here, github reports a lot of added commits which were already merged.

Try to use rebase (e.g. git pull --rebase) instead of merge when you want to forward-port a pull request, so we can maintain a linear-ish history, as parallel merge commits make it hard to review.

@ghost ghost closed this Feb 9, 2015
@ghost

ghost commented Feb 9, 2015

Copy link
Copy Markdown
Author

See the above link, I somehow screwed something up and in the aftermath the system automatically closed this PR. Rather than email GitHub and ask for them to look into it, I figured it would be more expedient and almost as easy to create a new one.

@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants