We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a1204d commit b421646Copy full SHA for b421646
2 files changed
Applications/Note/Note.cpp
@@ -360,6 +360,7 @@ void Note::ScaleSelector() {
360
}
361
notePadConfigs[activeConfig].scale = custom_scales[index];
362
customScaleSlotSelected = index;
363
+ scaleModifier.ChangeScalePtr(&custom_scales[index]);
364
});
365
scaleSelector.AddUIComponent(customScaleSelector, Point(0, 6));
366
Applications/Note/ScaleModifier.h
@@ -14,6 +14,11 @@ class ScaleModifier : public UIComponent {
14
this->rootColor = rootColor;
15
16
17
+ void ChangeScalePtr(uint16_t* scale)
18
+ {
19
+ this->scale = scale;
20
+ }
21
+
22
void OnChange(std::function<void(uint16_t)> changeCallback) {
23
this->changeCallback = std::make_unique<std::function<void(uint16_t)>>(changeCallback);
24
0 commit comments