mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-10-03 13:26:03 +00:00
Notifications settings done: screen corner selection + max count.
This commit is contained in:
@@ -59,8 +59,7 @@ void ScaleWidget::createControls() {
|
||||
_scale->addSection(scaleLabel(dbisOneAndHalf));
|
||||
_scale->addSection(scaleLabel(dbisTwo));
|
||||
_scale->setActiveSectionFast(cEvalScale(cConfigScale()) - 1);
|
||||
|
||||
connect(_scale, SIGNAL(sectionActivated()), this, SLOT(onSectionActivated()));
|
||||
_scale->setSectionActivatedCallback([this] { scaleChanged(); });
|
||||
}
|
||||
|
||||
void ScaleWidget::onAutoChosen() {
|
||||
@@ -102,7 +101,7 @@ void ScaleWidget::setScale(DBIScale newScale) {
|
||||
}
|
||||
}
|
||||
|
||||
void ScaleWidget::onSectionActivated() {
|
||||
void ScaleWidget::scaleChanged() {
|
||||
auto newScale = dbisAuto;
|
||||
switch (_scale->activeSection()) {
|
||||
case 0: newScale = dbisOne; break;
|
||||
|
Reference in New Issue
Block a user