chore: Fix build when GVARS=NO (#3769)
This commit is contained in:
@@ -92,6 +92,7 @@ GVarNumberEdit::GVarNumberEdit(Window* parent, const rect_t& rect, int32_t vmin,
|
|||||||
|
|
||||||
void GVarNumberEdit::switchGVarMode()
|
void GVarNumberEdit::switchGVarMode()
|
||||||
{
|
{
|
||||||
|
#if defined(GVARS)
|
||||||
if (modelGVEnabled()) {
|
if (modelGVEnabled()) {
|
||||||
int32_t value = getValue();
|
int32_t value = getValue();
|
||||||
setValue(
|
setValue(
|
||||||
@@ -106,6 +107,7 @@ void GVarNumberEdit::switchGVarMode()
|
|||||||
// update field type based on value
|
// update field type based on value
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void GVarNumberEdit::setSuffix(std::string value)
|
void GVarNumberEdit::setSuffix(std::string value)
|
||||||
|
|||||||
Reference in New Issue
Block a user