-
Notifications
You must be signed in to change notification settings - Fork 36.9k
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
Disallow duplicate windows. #6594
Conversation
Nice! Two points:
|
Concept ack. |
I tried adding calls to As far as modal vs non-modal, I can't really come up with a compelling argument for it either way. Do users leave up the sign/verify dialogs while they do other thing? |
@casey I also don't have an strong opinion on modal/non-modal. Just tested on Ubuntu and OSX and the focus issue is still unsolved. |
@jonasschnelli Which version of ubuntu and which desktop environment are you testing with? When I test with ubuntu vivid with unity, I can't actually get the main window to the foreground when the "sending addresses" or "receiving addresses" windows are up, they stay in the foreground, although I can focus the main window. |
@casey: Right. On Ubuntu the "sending addresses" or "receiving addresses" windows are always in front. On OSX (and probably also on Windows), the window does not keep in front always. There it would be good if the window gets the focus if one selects "sending addresses" or "receiving addresses" again from the menu. On Ubuntu focusing the window (even if it is always in front but un-focused) would also be good. |
@jonasschnelli I still can't get the windows to come to the foreground on all platforms; even with calls to What about just making all three dialogues modal, so that they're just always in the foreground, and users have to dismiss them to continue? This would make everything consistent. |
I think the "* addresses"-windows are non-modal so the user can easily copy more than one address into the "Send"-tab. But then there is also the "Choose previously used address"-button in the "Send"-tab providing an alternative to copy-paste sending addresses... So, making all three dialogues modal sounds ok to me. |
I personally prefer being able to open multiple windows at a time (not of the same type obviously - I agree with this pull). Modal dialogs are meant for when some action has to be completed before another, but if there is no sequential control flow, there is no reason to not allow interacting with them at the same time. |
In that case I think we should merge the PR as is. I haven't been able to get the right behavior in a cross platform way, no matter how many calls to |
Tested ACK on merging this as it is. |
utACK On Friday, September 4, 2015, Jonas Schnelli notifications@github.com
|
@casey: This commit (jonasschnelli@a272c80) would fix the focus issue. Mind cherry pick this commit? |
This shouldn't include the commit "rpc-tests: re-enable rpc-tests for Windows". |
Tested ACK (5ffaaba, Fedora) @jonasschnelli If you are happy with 5ffaaba maybe you could also create a windows build at https://builds.jonasschnelli.ch/pulls/6594/ ? |
@MarcoFalke: just triggered a gitian build of this PR: https://builds.jonasschnelli.ch/pulls/6594/ |
Great, thanks for the build! Tested ACK (Win 7) |
Tested ACK. |
@btcdrak I'm pretty sure that also works with when you have it in the PR description. |
@fanquake Maybe, they are always adding new features but it's not documented if it does. https://help.github.com/articles/closing-issues-via-commit-messages/ |
5ffaaba Disallow duplicate windows. (Casey Rodarmor)
Fixes #3569.
This change disallows the creation of multiple instances of the command line options, used send addresses, and used receive addresses windows.