Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jeremypw
Copy link
Collaborator

@jeremypw jeremypw commented Dec 6, 2021

Fixes #1140
Fixes #1141 (bitesize)

@jeremypw jeremypw mentioned this pull request Dec 8, 2021
@jeremypw
Copy link
Collaborator Author

Should probably make "New Window" an app action but that can be left to another PR.

Copy link
Member

@danirabbit danirabbit left a 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

@jeremypw
Copy link
Collaborator Author

jeremypw commented Sep 2, 2022

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.

@jeremypw
Copy link
Collaborator Author

jeremypw commented Sep 2, 2022

@danrabbit I have taken the opportunity to simplify window creation a little.

@jeremypw jeremypw requested a review from danirabbit September 2, 2022 10:01
title: _("Code")
);

document_view.realize.connect (() => {
Copy link
Member

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

Copy link
Collaborator Author

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)

@jeremypw
Copy link
Collaborator Author

Closing as too many changes since this was proposed.

@jeremypw jeremypw closed this Jan 14, 2023
@jeremypw jeremypw deleted the fix-new-window branch January 14, 2023 17:48
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.

Project list contains duplicates after creating new window Open tab in new window also opens other tabs in the new window.

4 participants