Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4be0468

Browse files
Set window title correctly for new or existing window (#130)
1 parent 21fa9a6 commit 4be0468

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

‎electron/app/js/project.js‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,13 @@ async function initializeNewProject(targetWindow, projectFile, isDirty) {
7777
projectFileName = `${projectFileName}.${projectFileExtension}`;
7878
}
7979
const wktWindow = require('./wktWindow');
80-
projectWindow.on('ready-to-show',()=> {
80+
if(projectWindow.id===targetWindow.id) {
8181
wktWindow.setTitleFileName(projectWindow, projectFileName, false);
82-
});
82+
} else {
83+
projectWindow.on('ready-to-show', () => {
84+
wktWindow.setTitleFileName(projectWindow, projectFileName, false);
85+
});
86+
}
8387
await _createNewProjectFile(projectWindow, projectFileName);
8488
app.addRecentDocument(projectFileName);
8589
projectWindow.setRepresentedFilename(projectFileName);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /