#7051: Deskbar doesn't remember your expanded items when you switch modes ------------------------------------+---------------------------- Reporter: jscipione | Owner: axeld Type: enhancement | Status: new Priority: normal | Milestone: R1 Component: Applications/Deskbar | Version: R1/Development Resolution: | Keywords: Blocked By: | Blocking: Has a Patch: 1 | Platform: All ------------------------------------+---------------------------- Comment (by jscipione): Replying to [comment:9 axeld]: > You managed to misunderstood me: I see that sExpandedItems is static, I just don't see a reason why that is. So, why is it static? I am sorry for the misunderstanding. The sExpandedItems list is static because I want there to be exactly one sExpandedItems list. I don't want to be able to accidentally create another sExpandedItems's list and start adding items to it. This is similar to other static lists such as sBarTeamInfoList and sSubscribers in BarApp.h. Of course you can only ever have one BarView per Deskbar (I hope) so perhaps I am being overly cautious. But since you can only ever have one BarApp per Deskbar I was copying the person who made those lists static. I assume that the author had something in mind when he or she mad those lists static and that I should copy him or her. I guess the only practical reason that I made sExpandedItems static was to avoid using an extern specifier when I declared sExpandedItems at the top of BarView.cpp. -- Ticket URL: <http://dev.haiku-os.org/ticket/7051#comment:10> Haiku <http://dev.haiku-os.org> Haiku - the operating system.