@lvce-editor/title-bar-worker 4.20.2 → 4.20.3
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.
|
@@ -5404,6 +5404,9 @@ const getNewMenus = async (menus, level, index, flags) => {
|
|
|
5404
5404
|
x,
|
|
5405
5405
|
y
|
|
5406
5406
|
} = menu;
|
|
5407
|
+
if (flags === Separator$1) {
|
|
5408
|
+
return menus;
|
|
5409
|
+
}
|
|
5407
5410
|
const item = items[index];
|
|
5408
5411
|
if (focusedIndex === index) {
|
|
5409
5412
|
if (index === -1) {
|
|
@@ -5476,7 +5479,7 @@ const handleMenuMouseOver = async (state, level, index) => {
|
|
|
5476
5479
|
if (!item) {
|
|
5477
5480
|
return state;
|
|
5478
5481
|
}
|
|
5479
|
-
const newMenus = await getNewMenus(menus, level, index);
|
|
5482
|
+
const newMenus = await getNewMenus(menus, level, index, item.flags);
|
|
5480
5483
|
if (menus === newMenus) {
|
|
5481
5484
|
return state;
|
|
5482
5485
|
}
|