Skip to content

Commit

Permalink
Check autosave property of plugin before deleting autosave file on wi…
Browse files Browse the repository at this point in the history
…ndow close

Signed-off-by: Mitesh <[email protected]>
  • Loading branch information
miteshgoplani committed Jul 30, 2020
1 parent 06b94c6 commit cc8a75a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ export class WindowManagerService implements MVDWindowManagement.WindowManagerSe
if (appId!=null) {
let filePath : any = 'pluginData' + '/' + 'app'
let fileNameToDelete : string = desktopWindow.plugin.getIdentifier() + '-' + appId
if(this.autoSaveFileAllowDelete){
if(this.autoSaveFileAllowDelete && desktopWindow.plugin.getWebContent().autosave == true){
this.http.delete(ZoweZLUX.uriBroker.pluginConfigUri(ZoweZLUX.pluginManager.getDesktopPlugin(),filePath,fileNameToDelete)).subscribe(()=>
this.logger.info('Deleted AutoSaveData for plugin:',desktopWindow.plugin.getIdentifier())
);
Expand Down

0 comments on commit cc8a75a

Please sign in to comment.