2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Add "Translate Entire Chat" button to Settings.

This commit is contained in:
John Preston
2023-01-30 18:01:10 +04:00
parent f5be551ff8
commit be71139515
14 changed files with 148 additions and 78 deletions

View File

@@ -1278,7 +1278,7 @@ bool MainWidget::showHistoryInDifferentWindow(
} else if (isPrimary()) {
const auto primary = Core::App().separateWindowForAccount(
&peer->account());
if (primary != &_controller->window()) {
if (primary && primary != &_controller->window()) {
primary->sessionController()->showPeerHistory(
peerId,
params,