@lvce-editor/quick-pick-worker 4.5.1 → 4.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3665,11 +3665,12 @@ const selectIndex = async (state, index, button = /* left */0) => {
|
|
|
3665
3665
|
if (!pick) {
|
|
3666
3666
|
return state;
|
|
3667
3667
|
}
|
|
3668
|
-
const
|
|
3669
|
-
if (
|
|
3668
|
+
const fn = getSelect(subId);
|
|
3669
|
+
if (shouldCloseBeforeSelect(subId, pick)) {
|
|
3670
3670
|
await closeWidget(state.uid);
|
|
3671
|
+
void fn(pick, value);
|
|
3672
|
+
return state;
|
|
3671
3673
|
}
|
|
3672
|
-
const fn = getSelect(subId);
|
|
3673
3674
|
const selectPickResult = await fn(pick, value);
|
|
3674
3675
|
object(selectPickResult);
|
|
3675
3676
|
string(selectPickResult.command);
|
|
@@ -3678,9 +3679,7 @@ const selectIndex = async (state, index, button = /* left */0) => {
|
|
|
3678
3679
|
} = selectPickResult;
|
|
3679
3680
|
switch (command) {
|
|
3680
3681
|
case Hide:
|
|
3681
|
-
|
|
3682
|
-
await closeWidget(state.uid);
|
|
3683
|
-
}
|
|
3682
|
+
await closeWidget(state.uid);
|
|
3684
3683
|
return state;
|
|
3685
3684
|
case OpenLanguageMode:
|
|
3686
3685
|
return loadContent({
|