mirror of https://github.com/procxx/kepka.git
Fix save color in theme editor.
This commit is contained in:
parent
ef7087348a
commit
dd136350fb
Telegram/SourceFiles/boxes
|
@ -704,11 +704,14 @@ void EditColorBox::fieldSubmitted() {
|
|||
}
|
||||
|
||||
void EditColorBox::saveColor() {
|
||||
_cancelCallback = Fn<void()>();
|
||||
const auto weak = make_weak(this);
|
||||
_cancelCallback = nullptr;
|
||||
if (_saveCallback) {
|
||||
_saveCallback(_new.toRgb());
|
||||
}
|
||||
closeBox();
|
||||
if (weak) {
|
||||
closeBox();
|
||||
}
|
||||
}
|
||||
|
||||
void EditColorBox::updateHSVFields() {
|
||||
|
|
Loading…
Reference in New Issue