@@ -564,7 +564,8 @@ async function store(state, emitter) {
564
564
emitter . on ( 'create-file' , ( device , fileName = null ) => {
565
565
log ( 'create-file' , device )
566
566
if ( state . creatingFile !== null ) return
567
-
567
+ state . selectedFiles = [ ]
568
+ state . itemActionMenu = null
568
569
state . creatingFile = device
569
570
state . creatingFolder = null
570
571
if ( fileName != null ) {
@@ -576,7 +577,6 @@ async function store(state, emitter) {
576
577
emitter . on ( 'finish-creating-file' , async ( fileNameParameter ) => {
577
578
log ( 'finish-creating' , fileNameParameter )
578
579
if ( ! state . creatingFile ) return
579
-
580
580
if ( ! fileNameParameter ) {
581
581
state . creatingFile = null
582
582
emitter . emit ( 'render' )
@@ -641,6 +641,8 @@ async function store(state, emitter) {
641
641
emitter . on ( 'create-folder' , ( device ) => {
642
642
log ( 'create-folder' , device )
643
643
if ( state . creatingFolder !== null ) return
644
+ state . selectedFiles = [ ]
645
+ state . itemActionMenu = null
644
646
state . creatingFolder = device
645
647
state . creatingFile = null
646
648
emitter . emit ( 'render' )
0 commit comments