2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Show current chat name in the window title.

This commit is contained in:
John Preston
2023-01-09 17:12:37 +04:00
parent 173108a9cb
commit fc26457218
12 changed files with 100 additions and 76 deletions

View File

@@ -54,6 +54,10 @@ public:
[[nodiscard]] SessionController *sessionController() const {
return _sessionController.get();
}
[[nodiscard]] auto sessionControllerValue() const
-> rpl::producer<SessionController*>;
[[nodiscard]] auto sessionControllerChanges() const
-> rpl::producer<SessionController*>;
[[nodiscard]] bool locked() const;
[[nodiscard]] Adaptive &adaptive() const;
@@ -144,6 +148,7 @@ private:
::MainWindow _widget;
const std::unique_ptr<Adaptive> _adaptive;
std::unique_ptr<SessionController> _sessionController;
rpl::variable<SessionController*> _sessionControllerValue;
QPointer<Ui::BoxContent> _termsBox;
rpl::event_stream<Media::View::OpenRequest> _openInMediaViewRequests;