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

@ -171,7 +171,7 @@ void Application::run() {
DEBUG_LOG(("Application Info: showing."));
_window->firstShow();
if (cStartToSettings()) {
if (!locked() && cStartToSettings()) {
_window->showSettings();
}

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();