Hi,
I'm updating a plugin to work with 4.1 and ran across a small issue with persistent dockable panels. Within the OnStartup function of my auto script, I create a persistent dockable panel and perform certain initialization only if the panel is visible (i.e. Panel.Common.Visible). In 4.1, the Visible attribute is always true during startup, even if it was previously closed. However, after the startup function is called the Visible attribute is restored to the correct value. I don't recall having this issue with 4.0 and earlier, but I'm not sure exactly which version this problem started happening.
Let me know if you would like me to provide more information.
Persistent dockable panel issue with 4.1 (1685)
Moderator: Gurus
Re: Persistent dockable panel issue with 4.1 (1685)
Hi, could you attach or refer to an example script demonstrating this?
Re: Persistent dockable panel issue with 4.1 (1685)
I think flashk is reffering to his (great) add-on MonkeyFlow. I have seen this behavior in MonkeyFlow and also other scripts using persistent panels.
Here is a screenshot to illustrate:
SCripts shown in screenshot above are: MonkeyFlow; Lyrics and Comment Viewer; WebSearch Panels.
Here is a screenshot to illustrate:
SCripts shown in screenshot above are: MonkeyFlow; Lyrics and Comment Viewer; WebSearch Panels.
Re: Persistent dockable panel issue with 4.1 (1685)
Yes, I think I see it now.
In 4.0.7:
- if I start MM when MonkeyFlow is disabled, the menu View -> [ ] Monkey Flow is correctly unchecked and checking it correctly initializes MonkeyFlow
In 4.1.0
- if I start MM when MonkeyFlow is disabled, the menu View -> [x] Monkey Flow is incorrectly checked and unchecking it has no effect and empty MonkeyFlow window is show, user needs to uncheck/check it again to properly initialize MonkeyFlow
To be fixed as: http://www.ventismedia.com/mantis/view.php?id=11680
In 4.0.7:
- if I start MM when MonkeyFlow is disabled, the menu View -> [ ] Monkey Flow is correctly unchecked and checking it correctly initializes MonkeyFlow
In 4.1.0
- if I start MM when MonkeyFlow is disabled, the menu View -> [x] Monkey Flow is incorrectly checked and unchecking it has no effect and empty MonkeyFlow window is show, user needs to uncheck/check it again to properly initialize MonkeyFlow
To be fixed as: http://www.ventismedia.com/mantis/view.php?id=11680
Re: Persistent dockable panel issue with 4.1 (1685)
Yes, this is the same behavior I get.Ludek wrote:In 4.1.0
- if I start MM when MonkeyFlow is disabled, the menu View -> [x] Monkey Flow is incorrectly checked and unchecking it has no effect and empty MonkeyFlow window is show, user needs to uncheck/check it again to properly initialize MonkeyFlow
Using Process Explorer, I discovered that, in fact, starting MM when MonkeyFlow is disabled, the MonkeyFlow processes are started, although they shouldn't!
Re: Persistent dockable panel issue with 4.1 (1685)
Great, thanks Ludek and gege!