-
-
Notifications
You must be signed in to change notification settings - Fork 113
New Window: do not restore docs, do not duplicate projects #1144
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
Conversation
|
Should probably make "New Window" an app action but that can be left to another PR. |
danirabbit
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Functionally this works for me, I have one comment about if we need this method on the application class
|
Hmm, I guess I always considered the Application class to be responsible for creating and managing windows. But in this case the Application class does not do anything other than create the window so I guess it does not need to be there. I'll check if there are any drawbacks in moving it. |
|
@danrabbit I have taken the opportunity to simplify window creation a little. |
| title: _("Code") | ||
| ); | ||
|
|
||
| document_view.realize.connect (() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason you moved this to the constructor? I think usually we don't want to have things here unless they are actually specific to this constructor as opposed to construct which runs for all constructors
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved it here because it uses restore_docs which is not available in construct (afaik)
|
Closing as too many changes since this was proposed. |
Fixes #1140
Fixes #1141 (bitesize)