Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to disable reorder on WEG and Toolbar: Feat(#412) #533

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

luriusTM
Copy link
Contributor

@luriusTM luriusTM commented Feb 2, 2025

Dependecy:
Seelen-Inc/slu-lib#10

Option requested (#412) in the context menu for the weg and the tb:
image
image

image
image

Ymls:
toolbar:
image
weg:
image

@@ -224,27 +225,27 @@ export function SeelenWeg() {
);
}

function ItemByType(item: SwItem, callback: (isOpen: boolean) => void) {
function ItemByType(item: SwItem, drag: boolean, callback: (isOpen: boolean) => void) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

drag doesn't need to be passed as property, instead disable it on Reorder.Group, remove this code.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no such an option ^^

Copy link
Contributor Author

@luriusTM luriusTM Feb 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can do this:
image

If you wish to disable it on Reorder.Group, but this will has this side-effect:

Screen.Recording.2025-02-02.170348.mp4

Copy link
Contributor Author

@luriusTM luriusTM Feb 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I make as shown by the video on the last commit. It is easily revertable.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eh sorry #533 (comment) missed my attention...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not solution

Copy link
Owner

@eythaann eythaann Feb 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

theoretically this should work, but apparently it isn't, so let as it is.
Edit: as it was before, is just revert b4af1b5 I believe

src/apps/seelenweg/modules/bar/menu.tsx Outdated Show resolved Hide resolved
src/apps/seelenweg/modules/bar/menu.tsx Outdated Show resolved Hide resolved
src/apps/seelenweg/modules/item/infra/MediaSession.tsx Outdated Show resolved Hide resolved
src/apps/seelenweg/modules/shared/store/infra.ts Outdated Show resolved Hide resolved
src/apps/seelenweg/modules/shared/store/storeApi.ts Outdated Show resolved Hide resolved
src/apps/toolbar/modules/item/infra/Inner.tsx Outdated Show resolved Hide resolved
src/apps/toolbar/modules/main/ContextMenu.tsx Show resolved Hide resolved
src/apps/toolbar/modules/main/infra.tsx Outdated Show resolved Hide resolved
@luriusTM luriusTM requested a review from eythaann February 3, 2025 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants