2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 09:05:14 +00:00

Allow boxes that don't hide by escape / click.

This commit is contained in:
John Preston
2018-06-06 14:51:27 +03:00
parent e47d110f28
commit 16f3ca87f5
5 changed files with 46 additions and 5 deletions

View File

@@ -357,6 +357,11 @@ void LayerStackWidget::keyPressEvent(QKeyEvent *e) {
void LayerStackWidget::mousePressEvent(QMouseEvent *e) {
if (_hideByBackgroundClick) {
if (const auto layer = currentLayer()) {
if (!layer->closeByOutsideClick()) {
return;
}
}
hideCurrent(anim::type::normal);
}
}