Commit Graph

316 Commits

Author SHA1 Message Date
23rd d6e1ee2a28 Added closing of attached bot web view when app is locked by passcode.
Fixed #26582.
2023-08-04 08:46:45 +02:00
John Preston 2fb7bdc803 Skip refocus InputField::Inner if field unfocused.
I hope this fixes #26223.
2023-05-24 21:22:26 +04:00
John Preston 65afa2c402 Detach ComposeControls from SessionController. 2023-05-17 15:51:52 +04:00
John Preston 58c5bb7247 Update online after the window active status.
I hope this fixes #26059.
2023-03-21 16:23:38 +04:00
John Preston 68eb99bde0 Mark as read only in visible non minimized window.
I hope this fixes #26050.
2023-03-17 16:48:43 +04:00
John Preston f3e15c7fcd Suggest inviting by link if privacy disallows adding. 2023-03-12 07:25:39 +04:00
John Preston 7557a20679 Close PiP when a passcode lock is enabled. 2023-02-15 10:47:10 +04:00
John Preston cdfdccbb66 Detach SystemMediaControls from Window::Controller. 2023-01-19 09:46:20 +04:00
John Preston 7023b013ce Initial support of separate windows for accounts. 2023-01-19 09:45:28 +04:00
John Preston f9ca7f4505 Beta version 4.5.4: Fix "Mark-as-read-inactive setting." 2023-01-10 16:24:27 +04:00
John Preston 3c17fab15a Beta version 4.5.4: Mark-as-read-inactive setting.
In case an experimental setting of auto-scrolling is enabled,
just ignore the window activity check in marking chat as read..
2023-01-10 15:31:15 +04:00
John Preston b561705528 Use Window::SlideAnimation in all widgets. 2022-12-01 14:18:37 +04:00
John Preston ad3f8e72a0 Remove namespace App. 2022-11-30 17:28:09 +04:00
John Preston 01139e1b04 Remove facades module. 2022-11-30 16:55:51 +04:00
John Preston 9d4840c0de Respect window active state on mark as read. 2022-11-02 20:13:29 +04:00
John Preston d8743ec0e6 Fix opening channel with active livestream in a new window. 2022-08-08 18:18:44 +03:00
John Preston db15a58dde Fix separate windows with audio player.
Fixes https://bugs.telegram.org/c/18154
2022-06-22 16:42:46 +04:00
23rd fe7cffc509 Improved management of online status from non-primary windows.
– The online status of the user should be checked and updated only
when the previous active window and the current active window both have
different sessions.
– Removed MainWindow::activeChangedHook since windows should not
change online status on their own on activating.
– Renamed Application::maybeActiveSession
to Application::maybePrimarySession.
– Added updating of online status on changing of the current account
since this seems to have been missed.
2022-06-12 16:07:41 +03:00
John Preston 7828288660 Fix minimized start. 2022-06-08 14:34:46 +04:00
23rd 9861370b75 Added hotkeys to get next / previous item of search messages in dialogs. 2022-06-08 11:59:30 +03:00
John Preston a780fbd09b Add "ctrl-click-chat-new-window" option. 2022-06-07 22:05:37 +04:00
23rd 0e16a50bbc Completely removed common and platform code for tray from main window. 2022-05-03 04:25:36 +03:00
23rd 94e06c6846 Removed Windows tray implementation from main window. 2022-05-03 04:25:36 +03:00
23rd 3ebb9af8f8 Removed Ui::hideSettingsAndLayer(). 2022-03-04 11:25:10 +03:00
Ilya Fedin f4f7b5b99c Hide the window instantly within autostart
Unnecessary minimize triggers animation that provides a sign there were a window. There's also seem to be queuing of hide on Linux that makes the effect even more noticable and it seems the bug this workaround was made for no longer reproduces.
2022-02-28 20:22:01 +03:00
23rd 5718789d53 Replaced Ui::InformBox and Ui::ConfirmBox with GenericBox. 2022-02-28 09:08:01 +03:00
John Preston 9d6eeace54 Fix quilt by system on macOS. 2022-01-31 23:16:56 +03:00
John Preston b5aca56914 Fix pausing stickers in StickerSetBox. 2022-01-28 19:10:07 +03:00
John Preston 28f2c213f7 Remove app module. Support delayed quit by Cmd+Q on macOS. 2022-01-27 15:54:20 +03:00
John Preston db453ab7ae Allow slowing down Animations::Simple in debug build. 2022-01-14 21:55:47 +03:00
John Preston 18e6e2da9e Open specific chat only in one window. 2022-01-04 19:36:33 +03:00
John Preston 54247cd11b Create dialogs widget only in the primary window. 2022-01-04 16:44:53 +03:00
John Preston aef45b3a1d Refactor icon unread counter painting. 2021-11-02 20:12:57 +04:00
23rd 80461bd9fe Moved ConfirmBox to Ui namespace. 2021-10-19 06:34:27 +03:00
23rd 6148edbc7d Moved ConfirmBox to td_ui. 2021-10-19 06:34:27 +03:00
John Preston b78b27f517 Move dialogs_layout to dialogs/ui/. 2021-10-04 23:45:21 +04:00
John Preston cf76933352 Fix saving tray "Toggle notifications" on relaunch.
Fixes https://bugs.telegram.org/c/9509
2021-09-22 14:03:41 +04:00
23rd 613f2ba708 Replaced instant base::call_delayed with InvokeQueued. 2021-09-07 23:41:07 +03:00
John Preston ae30366cbf Fix window move by title on macOS. 2021-07-29 15:30:22 +03:00
Ilya Fedin 1ebf27bfa1 Switch MainWindow to Ui::RpWindow 2021-07-28 18:05:39 +03:00
John Preston 4276b6cce0 Use rpl for Window::Theme::Background updates. 2021-07-15 16:42:36 +03:00
23rd a631a28092 Removed App::pixmapFromImageInPlace. 2021-07-06 12:13:06 +03:00
23rd 6bb7e2c2eb Removed using of hardcoded numbers of tray menu actions. 2021-07-06 12:13:06 +03:00
23rd 4909ba5a1e Added ability to pass custom layer widgets to stack. 2021-07-06 12:13:05 +03:00
John Preston e1120d1cb5 Optimize out most of LastUserInputTime() calls.
Fixes #16118.
2021-06-18 19:22:36 +04:00
23rd 570ed5691d Added Window::Controller pointer to data of intro widget. 2021-06-17 10:57:45 +04:00
23rd 707b36dc12 Moved DBIWorkMode to Core::Settings. 2021-06-16 09:31:32 +03:00
23rd 5334372671 Moved WorkMode global variable from facades to core settings. 2021-06-16 09:31:32 +03:00
23rd aad38c2809 Replaced observable in Window::Notifications::System with rpl. 2021-06-16 09:31:32 +03:00
23rd 69eaecc218 Moved SystemMediaControlsManagerto Media namespace. 2021-06-10 23:00:56 +03:00