Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1799)

Unified Diff: Source/devtools/front_end/workspace/UISourceCode.js

Issue 659433002: DevTools: Fix unsaved committed changes UI to match saved state when saving with file manager. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/devtools/front_end/sources/UISourceCodeFrame.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/workspace/UISourceCode.js
diff --git a/Source/devtools/front_end/workspace/UISourceCode.js b/Source/devtools/front_end/workspace/UISourceCode.js
index 781fcd4ccba95f71118feef372e192b98dfc6522..5472bef7fdacf1d532e0d5465a689022f99d24c9 100644
--- a/Source/devtools/front_end/workspace/UISourceCode.js
+++ b/Source/devtools/front_end/workspace/UISourceCode.js
@@ -363,9 +363,9 @@ WebInspector.UISourceCode.prototype = {
*/
function callback(accepted)
{
- if (!accepted)
- return;
- this._savedWithFileManager = true;
+ this._savedWithFileManager = accepted;
+ if (accepted)
+ this._hasCommittedChanges = false;
this.dispatchEventToListeners(WebInspector.UISourceCode.Events.SavedStateUpdated);
}
},
« no previous file with comments | « Source/devtools/front_end/sources/UISourceCodeFrame.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698