Skip to content

Commit eb7f13f

Browse files
committed
Dismiss action menu and selected item on new file/folder creation.
Signed-off-by: ubi de feo <me@ubidefeo.com>
1 parent 3b39480 commit eb7f13f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ui/arduino/store.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,8 @@ async function store(state, emitter) {
564564
emitter.on('create-file', (device, fileName = null) => {
565565
log('create-file', device)
566566
if (state.creatingFile !== null) return
567-
567+
state.selectedFiles = []
568+
state.itemActionMenu = null
568569
state.creatingFile = device
569570
state.creatingFolder = null
570571
if (fileName != null) {
@@ -576,7 +577,6 @@ async function store(state, emitter) {
576577
emitter.on('finish-creating-file', async (fileNameParameter) => {
577578
log('finish-creating', fileNameParameter)
578579
if (!state.creatingFile) return
579-
580580
if (!fileNameParameter) {
581581
state.creatingFile = null
582582
emitter.emit('render')
@@ -641,6 +641,8 @@ async function store(state, emitter) {
641641
emitter.on('create-folder', (device) => {
642642
log('create-folder', device)
643643
if (state.creatingFolder !== null) return
644+
state.selectedFiles = []
645+
state.itemActionMenu = null
644646
state.creatingFolder = device
645647
state.creatingFile = null
646648
emitter.emit('render')

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy