mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 05:36:59 -04:00
Delay the construction of controls is SetWindowPanels until the panel is actually shown (initUI). This makes the program start slightly faster.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1189 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -60,9 +60,12 @@ class StatsPanel : public SetWindowPanel {
|
||||
FilteredCardList* card_list;
|
||||
IconMenu* menuGraph;
|
||||
|
||||
CardP card; ///< Selected card
|
||||
bool up_to_date; ///< Are the graph and card list up to date?
|
||||
bool active; ///< Is this panel selected?
|
||||
|
||||
void initControls();
|
||||
|
||||
void onChange();
|
||||
void onGraphSelect(wxCommandEvent&);
|
||||
void showCategory(const GraphType* prefer_layout = nullptr);
|
||||
|
||||
Reference in New Issue
Block a user