Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Fix for Title bar text and Save button issue for empty active pane #14421

Merged
merged 3 commits into from
Jun 14, 2018

Conversation

sobisht
Copy link
Collaborator

@sobisht sobisht commented Jun 13, 2018

  • _updateTitle() failed when there is no file opened in active pane. Causing the title bar retaining the text of last opened document as title. Added a null check for that.
  • _setMenuItemsVisible() failed when there is no file opened in active pane. Causing the state of file menu options same as for previous file. Added a check to enable menu options if no file is present in active pane.

@@ -158,8 +158,8 @@ define(function (require, exports, module) {
var currentDoc = DocumentManager.getCurrentDocument(),
windowTitle = brackets.config.app_title,
currentlyViewedFile = MainViewManager.getCurrentlyViewedFile(MainViewManager.ACTIVE_PANE),
currentlyViewedPath = currentlyViewedFile.fullPath,
Copy link
Contributor

Choose a reason for hiding this comment

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

Good fix 👍 Actually one console error was there because of this line on project change. Can you please verify that as well?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, this will fix the console error also.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants