Added preset grouping to PresetCollection::update_tab_ui

This commit is contained in:
YuSanka 2018-04-10 10:31:58 +02:00
parent 0cca7bb5e7
commit fa4462514b
2 changed files with 36 additions and 6 deletions

View file

@ -6,7 +6,7 @@ namespace GUI {
class Bed_2D : public wxPanel
{
bool m_user_drawn_background = false;
bool m_user_drawn_background = true;
bool m_painted = false;
bool m_interactive = false;
@ -26,7 +26,9 @@ public:
{
Create(parent, wxID_ANY, wxDefaultPosition, wxSize(250, -1), wxTAB_TRAVERSAL);
// m_user_drawn_background = $^O ne 'darwin';
m_user_drawn_background = true;
#ifdef __APPLE__
m_user_drawn_background = false;
#endif /*__APPLE__*/
Bind(wxEVT_PAINT, ([this](wxPaintEvent e) { repaint(); }));
// EVT_ERASE_BACKGROUND($self, sub{}) if $self->{user_drawn_background};
// Bind(EVT_MOUSE_EVENTS, ([this](wxMouseEvent event){/*mouse_event()*/; }));