2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Fix background reset on language change.

This commit is contained in:
John Preston
2019-03-12 12:07:39 +04:00
parent a95a055acd
commit 5c3f667fc3
2 changed files with 10 additions and 3 deletions

View File

@@ -241,7 +241,12 @@ void MainWindow::setupMain() {
}
void MainWindow::showSettings() {
if (isHidden()) showFromTray();
if (isHidden()) {
showFromTray();
}
if (_passcodeLock) {
return;
}
if (const auto controller = this->controller()) {
controller->showSettings();
@@ -253,7 +258,9 @@ void MainWindow::showSettings() {
void MainWindow::showSpecialLayer(
object_ptr<Window::LayerWidget> layer,
anim::type animated) {
if (_passcodeLock) return;
if (_passcodeLock) {
return;
}
if (layer) {
ensureLayerCreated();