mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-17 03:37:54 -06:00
Correct show_preset_comboboxes
This commit is contained in:
parent
709b898eba
commit
da16b28c14
6 changed files with 80 additions and 22 deletions
|
@ -38,6 +38,7 @@ wxString double_to_string(double const value);
|
|||
|
||||
class MyButton : public wxButton
|
||||
{
|
||||
bool hidden = false; // never show button if it's hidden ones
|
||||
public:
|
||||
MyButton() {}
|
||||
MyButton(wxWindow* parent, wxWindowID id, const wxString& label = wxEmptyString,
|
||||
|
@ -52,6 +53,12 @@ public:
|
|||
// overridden from wxWindow base class
|
||||
virtual bool
|
||||
AcceptsFocusFromKeyboard() const { return false; }
|
||||
|
||||
virtual bool Show(bool show = true) override {
|
||||
if (!show)
|
||||
hidden = true;
|
||||
return wxButton::Show(!hidden);
|
||||
}
|
||||
};
|
||||
|
||||
class Field {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue