require 1 or more files on a drop event

This commit is contained in:
Stewart Allen 2024-10-03 11:40:50 -04:00
commit 2703fd837c

View file

@ -1339,7 +1339,7 @@ gapp.register("kiri.init", [], (root, exports) => {
if (files.length === 1) { if (files.length === 1) {
api.platform.load_files(files); api.platform.load_files(files);
} else { } else if (files.length > 1) {
uc.confirm(`group ${files.length} files?`).then(yes => { uc.confirm(`group ${files.length} files?`).then(yes => {
api.platform.load_files(files, yes ? [] : undefined); api.platform.load_files(files, yes ? [] : undefined);
}); });