mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-25 04:38:23 +00:00
Fix background reset on language change.
This commit is contained in:
parent
a95a055acd
commit
5c3f667fc3
@ -171,7 +171,7 @@ void Application::run() {
|
||||
DEBUG_LOG(("Application Info: showing."));
|
||||
_window->firstShow();
|
||||
|
||||
if (cStartToSettings()) {
|
||||
if (!locked() && cStartToSettings()) {
|
||||
_window->showSettings();
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user