Skip to content

Commit cd00d84

Browse files
committed
refresh file list if the saved file is new
1 parent 4deba6d commit cd00d84

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

data/js/postioapi.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,11 @@ define(function(require, exports, module) {
5656
TSCORE.hideLoadingAnimation();
5757
};
5858

59-
exports.saveTextFile = function(filePath) {
60-
TSCORE.PerspectiveManager.refreshFileListContainer();
59+
exports.saveTextFile = function(filePath, isNewFile) {
60+
// If the file is new, then refresh the filelist
61+
if(isNewFile) {
62+
TSCORE.PerspectiveManager.refreshFileListContainer();
63+
}
6164
//if(!TSCORE.FileOpener.isFileOpened()) {
6265
TSCORE.FileOpener.openFile(filePath);
6366
//}

0 commit comments

Comments
 (0)