-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
Notification delegates for individual Panels and Tabs #17
Comments
Thank you for the feature request! I probably won't be able to add this feature in the near future, though. |
Thanks for the response! Here is my current workaround - I had to make changes to the source of the plugin which could break the existing functionality: PanelTab - Add a new Method:
PanelNotificationCenter#TabIDChanged An example listener that simply destroys the tab if the Button is Clicked:
For Panels the changes should be very similar Obviously, this solution is quite flawed but it is a simple workaround that will do the trick for me :) |
Looks neat! What are its known flaws? |
I think it is quite "hacky" because it does not use the PanelNotificationCenter which was originally intended for this purpose.
The tab will always be closed and the text won't ever show. But the same unpredictability can happen if you register multiple Delegates so maybe this is simply the responsibility of the developer. |
OnPanelClosed and OnTabClosed works globally for all panels/tabs.
I would love to be able to define different delegate methods for different tabs. This way I could specify individual behavior on close or even make some tabs closeable and others not.
Sadly I'm not experienced with C# delegates so I'm having a hard time thinking of a workaround that works for me.
Thanks for this great Plugin!
The text was updated successfully, but these errors were encountered: