mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Beta version 4.5.4: Fix "Mark-as-read-inactive setting."
This commit is contained in:
parent
0a3d31a91f
commit
f9ca7f4505
5 changed files with 8 additions and 8 deletions
|
@ -126,7 +126,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "media/player/media_player_instance.h"
|
||||
#include "core/application.h"
|
||||
#include "apiwrap.h"
|
||||
#include "base/options.h"
|
||||
#include "base/qthelp_regex.h"
|
||||
#include "ui/boxes/report_box.h"
|
||||
#include "ui/chat/pinned_bar.h"
|
||||
|
@ -171,9 +170,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include <QtGui/QWindow>
|
||||
#include <QtCore/QMimeData>
|
||||
|
||||
const char kOptionAutoScrollInactiveChat[] =
|
||||
"auto-scroll-inactive-chat";
|
||||
|
||||
namespace {
|
||||
|
||||
constexpr auto kMessagesPerPageFirst = 30;
|
||||
|
|
|
@ -103,8 +103,6 @@ class TTLButton;
|
|||
class BotKeyboard;
|
||||
class HistoryInner;
|
||||
|
||||
extern const char kOptionAutoScrollInactiveChat[];
|
||||
|
||||
class HistoryWidget final
|
||||
: public Window::AbstractSectionWidget
|
||||
, private HistoryView::CornerButtonsDelegate {
|
||||
|
|
|
@ -41,6 +41,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "settings/settings_intro.h"
|
||||
#include "platform/platform_notifications_manager.h"
|
||||
#include "base/platform/base_platform_info.h"
|
||||
#include "base/options.h"
|
||||
#include "base/variant.h"
|
||||
#include "window/notifications_manager.h"
|
||||
#include "window/themes/window_theme.h"
|
||||
|
@ -85,6 +86,9 @@ base::options::toggle AutoScrollInactiveChat({
|
|||
|
||||
} // namespace
|
||||
|
||||
const char kOptionAutoScrollInactiveChat[] =
|
||||
"auto-scroll-inactive-chat";
|
||||
|
||||
MainWindow::MainWindow(not_null<Window::Controller*> controller)
|
||||
: Platform::MainWindow(controller) {
|
||||
resize(st::windowDefaultWidth, st::windowDefaultHeight);
|
||||
|
@ -545,7 +549,7 @@ bool MainWindow::markingAsRead() const {
|
|||
&& !_main->isHidden()
|
||||
&& !_main->animatingShow()
|
||||
&& !_layer
|
||||
&& (AutoScrollInactiveChat().value()
|
||||
&& (AutoScrollInactiveChat.value()
|
||||
|| (isActive() && !_main->session().updates().isIdle()));
|
||||
}
|
||||
|
||||
|
|
|
@ -42,6 +42,8 @@ class LayerStackWidget;
|
|||
|
||||
class MediaPreviewWidget;
|
||||
|
||||
extern const char kOptionAutoScrollInactiveChat[];
|
||||
|
||||
class MainWindow : public Platform::MainWindow {
|
||||
public:
|
||||
explicit MainWindow(not_null<Window::Controller*> controller);
|
||||
|
|
|
@ -19,8 +19,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "platform/platform_specific.h"
|
||||
#include "chat_helpers/tabbed_panel.h"
|
||||
#include "dialogs/dialogs_inner_widget.h"
|
||||
#include "history/history_widget.h"
|
||||
#include "lang/lang_keys.h"
|
||||
#include "mainwindow.h"
|
||||
#include "media/player/media_player_instance.h"
|
||||
#include "webview/webview_embed.h"
|
||||
#include "window/window_peer_menu.h"
|
||||
|
|
Loading…
Add table
Reference in a new issue