@@ -94,7 +94,7 @@ class Workspace extends Component<IProps> {
9494 'error' ,
9595 RendererUtils . getLang ( 'Workspace.loading_fail_msg' ) ,
9696 RendererUtils . getLang ( 'Workspace.fail_contact_msg' ) ,
97- { height : 190 , width : 365 , padding : 30 }
97+ { height : 190 , width : 365 , padding : 30 } ,
9898 ) ;
9999 await RendererUtils . clearTempProject ( ) ;
100100
@@ -120,7 +120,7 @@ class Workspace extends Component<IProps> {
120120 'progress' ,
121121 RendererUtils . getLang ( 'Workspace.uploading_msg' ) ,
122122 RendererUtils . getLang ( 'Workspace.fail_contact_msg' ) ,
123- { width : 220 }
123+ { width : 220 } ,
124124 ) ;
125125 const project = await readProjectFunction ;
126126 await this . loadProject ( project ) ;
@@ -216,7 +216,7 @@ class Workspace extends Component<IProps> {
216216 '' ,
217217 {
218218 width : 220 ,
219- }
219+ } ,
220220 ) ;
221221 this . isSavingCanvasData = true ;
222222 try {
@@ -244,7 +244,7 @@ class Workspace extends Component<IProps> {
244244 console . log ( Constants . sep ) ;
245245 const savePath = `${ dirPath } ${ Constants . sep } ` ;
246246 await ipcRendererHelper . captureBlockImage ( images , savePath ) ;
247- } )
247+ } ) ;
248248 } catch ( err ) {
249249 console . error ( err ) ;
250250 }
@@ -363,7 +363,7 @@ class Workspace extends Component<IProps> {
363363 'progress' ,
364364 RendererUtils . getLang ( 'Workspace.saving_msg' ) ,
365365 RendererUtils . getLang ( 'Workspace.fail_contact_msg' ) ,
366- { width : 220 }
366+ { width : 220 } ,
367367 ) ;
368368
369369 try {
@@ -387,15 +387,15 @@ class Workspace extends Component<IProps> {
387387 Entry . stateManager . addStamp ( ) ;
388388 Entry . toast . success (
389389 RendererUtils . getLang ( 'Workspace.saved' ) ,
390- `${ projectName } ${ RendererUtils . getLang ( 'Workspace.saved_msg' ) } `
390+ `${ projectName } ${ RendererUtils . getLang ( 'Workspace.saved_msg' ) } ` ,
391391 ) ;
392392 } catch ( err ) {
393393 console . error ( err ) ;
394394 this . showModalProgress (
395395 'error' ,
396396 RendererUtils . getLang ( 'Workspace.saving_fail_msg' ) ,
397397 RendererUtils . getLang ( 'Workspace.fail_contact_msg' ) ,
398- { height : 190 , width : 365 , padding : 30 }
398+ { height : 190 , width : 365 , padding : 30 } ,
399399 ) ;
400400 } finally {
401401 this . isSaveProject = false ;
@@ -407,12 +407,17 @@ class Workspace extends Component<IProps> {
407407 await saveFunction ( this . projectSavedPath ) ;
408408 } else {
409409 const targetPath = this . projectSavedPath || '*' ;
410+ let defaultPath = this . projectSavedPath ? targetPath : projectName ;
411+ if ( key !== 'save' ) {
412+ defaultPath = defaultPath . replace ( '.ent' , '' ) ;
413+ defaultPath += '의 리메이크' ;
414+ }
410415 RendererUtils . showSaveDialog (
411416 {
412- defaultPath : ` ${ targetPath } / ${ projectName } ` ,
417+ defaultPath,
413418 filters : [ { name : 'Entry File' , extensions : [ 'ent' ] } ] ,
414419 } ,
415- saveFunction
420+ saveFunction ,
416421 ) ;
417422 }
418423 LocalStorageManager . clearSavedProject ( ) ;
@@ -435,7 +440,7 @@ class Workspace extends Component<IProps> {
435440 } ) . then ( ( { filePaths } ) => {
436441 resolve ( filePaths [ 0 ] ) ;
437442 } ) ;
438- } )
443+ } ) ,
439444 ) ;
440445 }
441446 } ;
@@ -449,7 +454,7 @@ class Workspace extends Component<IProps> {
449454 'progress' ,
450455 RendererUtils . getLang ( 'Workspace.uploading_msg' ) ,
451456 RendererUtils . getLang ( 'Workspace.fail_contact_msg' ) ,
452- { width : 220 }
457+ { width : 220 } ,
453458 ) ;
454459
455460 try {
@@ -467,7 +472,7 @@ class Workspace extends Component<IProps> {
467472 'error' ,
468473 RendererUtils . getLang ( 'Workspace.loading_fail_msg' ) ,
469474 RendererUtils . getLang ( 'Workspace.fail_contact_msg' ) ,
470- { height : 190 , width : 365 , padding : 30 }
475+ { height : 190 , width : 365 , padding : 30 } ,
471476 ) ;
472477 }
473478 }
@@ -612,7 +617,7 @@ class Workspace extends Component<IProps> {
612617 await this . _loadProjectFromFile ( filePath ) ;
613618 } else {
614619 EntryModalHelper . getAlertModal (
615- RendererUtils . getLang ( 'Workspace.upload_not_supported_file_msg' )
620+ RendererUtils . getLang ( 'Workspace.upload_not_supported_file_msg' ) ,
616621 ) ;
617622 }
618623 } }
0 commit comments