File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -94,13 +94,15 @@ const createMainWindow = () => {
94
94
const userChosenPath = dialog . showSaveDialog ( window , options ) ;
95
95
if ( userChosenPath ) {
96
96
item . setSavePath ( userChosenPath ) ;
97
- const newProjectTitle = path . basename ( userChosenPath , extName ) ;
98
- webContents . send ( 'setTitleFromSave' , { title : newProjectTitle } ) ;
99
-
100
- // "setTitleFromSave" will set the project title but GUI has already reported the telemetry event
101
- // using the old title. This call lets the telemetry client know that the save was actually completed
102
- // and the event should be committed to the event queue with this new title.
103
- telemetry . projectSaveCompleted ( newProjectTitle ) ;
97
+ if ( extNameNoDot . toUpperCase ( ) == "SB3" ) { // when a project is downloaded, not an asset
98
+ const newProjectTitle = path . basename ( userChosenPath , extName ) ;
99
+ webContents . send ( 'setTitleFromSave' , { title : newProjectTitle } ) ;
100
+
101
+ // "setTitleFromSave" will set the project title but GUI has already reported the telemetry event
102
+ // using the old title. This call lets the telemetry client know that the save was actually completed
103
+ // and the event should be committed to the event queue with this new title.
104
+ telemetry . projectSaveCompleted ( newProjectTitle ) ;
105
+ }
104
106
} else {
105
107
item . cancel ( ) ;
106
108
telemetry . projectSaveCanceled ( ) ;
You can’t perform that action at this time.
0 commit comments