John Preston
a95b756111
Fix settings saving.
...
Regression was introduced in 5d6a494934
.
Fixes #8168 .
2020-06-30 13:49:22 +04:00
Ilya Fedin
a726c6411b
Don't use custom notificaions on Wayland even with TDESKTOP_DISABLE_DBUS_INTEGRATION
2020-06-29 16:53:50 +04:00
John Preston
79a361ba43
Move call management to Core::App.
2020-06-25 21:57:36 +04:00
John Preston
65050bf9dd
Move export management to Core::App.
2020-06-25 11:14:05 +04:00
John Preston
e7b8a52278
Move terms lock from Core::App to Session.
2020-06-24 11:56:16 +04:00
John Preston
30c82bb2e0
Remove some MainWindow::sessionController() calls.
2020-06-23 21:53:44 +04:00
23rd
0696a2d5c0
Replaced mapping to rpl::empty_value with rpl::to_empty.
2020-06-23 21:53:43 +04:00
23rd
e318a7d65f
Simplified ranges::find_if with ranges::any_of and ranges::none_of.
2020-06-23 21:53:43 +04:00
John Preston
3bb352e0e5
Fix build and working on macOS.
2020-06-23 21:53:42 +04:00
John Preston
997913be25
One Window::Notifications system for all sessions.
2020-06-23 21:53:42 +04:00
John Preston
83538675ce
Move a lot of settings to Core::Settings.
2020-06-23 21:53:42 +04:00
John Preston
4d6cc58f0d
Move session settings to main_session_settings.
2020-06-23 21:53:42 +04:00
John Preston
3a5ede534e
Count all accounts in Core::App().unreadBadge.
2020-06-23 21:53:41 +04:00
John Preston
357caf8007
Keep separate MTP::Config's for separate accounts.
2020-06-23 21:53:41 +04:00
John Preston
bc144377c0
Support logout of a secondary account.
2020-06-23 21:53:41 +04:00
John Preston
ab5796c117
Several working accounts together.
2020-06-23 21:53:40 +04:00
23rd
9faf15943a
Fixed build for macOS.
2020-06-23 21:53:40 +04:00
John Preston
3c4e959468
Replace observer_peer with rpl interface.
2020-06-23 21:53:40 +04:00
John Preston
b0f9ad71dd
Check some more App::main()s.
2020-06-23 21:53:40 +04:00
John Preston
0ad7dcaef9
Remove MTP::MainInstance() global access point.
2020-06-23 21:53:40 +04:00
John Preston
0b028b959b
Move updates handling MainWidget -> Api::Updates.
2020-06-23 21:53:39 +04:00
John Preston
ee43027bea
Remove some usages of App::main().
2020-06-23 21:53:39 +04:00
John Preston
ea86433be5
Remove some activeAccount() calls.
2020-06-23 21:53:39 +04:00
John Preston
598fb67cdf
Remove Session::Exists() global access point.
2020-06-23 21:53:39 +04:00
John Preston
5f8d22f1f2
Remove Auth() global access point.
2020-06-23 21:53:39 +04:00
John Preston
ad4afe9293
Move session data localstorage -> storage_account.
2020-06-23 21:53:39 +04:00
Ilya Fedin
68fde210c6
Platform::IsWayland could be used on any platform now
2020-06-23 21:24:44 +04:00
Ilya Fedin
1beada6e4a
Hide notification position in settings on Wayland
2020-06-19 06:28:01 +04:00
John Preston
a56ecfebeb
Version 2.1.12: Fix build on macOS.
2020-06-17 22:36:53 +04:00
Ilya Fedin
dbad9fa73a
Use Q_OS_UNIX instead of Q_OS_LINUX since linux-specific code can be used also on *BSD/Haiku
2020-06-17 20:33:23 +04:00
Ilya Fedin
56de3194ef
Never use custom notifications on Wayland since there are no positioning API
2020-06-17 20:32:50 +04:00
Ilya Fedin
e098922a4b
Add Platform::AutostartSupported
2020-06-01 18:25:21 +04:00
Ilya Fedin
be96bf2812
Set parent for dialogs only on Wayland
2020-06-01 18:09:34 +04:00
John Preston
36fbdfb380
Simplify Image, remove ImageSource.
2020-06-01 18:09:33 +04:00
John Preston
6513422e40
Remove legacy image-related code.
2020-06-01 18:09:33 +04:00
John Preston
803593cd8d
Change Stickers::Set from value to object type.
2020-06-01 18:09:33 +04:00
Ilya Fedin
3479a4ec59
Add parent, minimum and maximum size to notifications
2020-05-25 09:29:15 +04:00
John Preston
6f760d513e
Add a checkbox to disable taskbar flash.
...
Also add ability to set urgent flag for the window on Linux.
Fixes #223 , fixes #897 , fixes #906 .
2020-05-12 14:16:24 +04:00
Ilya Fedin
7409d615a3
Add a cheat code to enable freetype on Windows and macOS
2020-05-10 17:09:59 +04:00
Ilya Fedin
95b4f56b86
Don't use QDesktopServices::openUrl on snap
2020-05-01 12:06:01 +04:00
John Preston
dd78052f92
Use new toast style structure.
2020-04-30 11:35:01 +04:00
John Preston
aabc8173c3
Use similar margins in all controls.
2020-04-30 11:35:01 +04:00
John Preston
8d632bd2be
Update API scheme to layer 103.
2020-04-30 11:35:01 +04:00
John Preston
0c2d8f1b6e
Allow open folders by 'folders' code.
2020-03-27 20:36:06 +04:00
John Preston
fdabdc3626
Refresh filter chats count in filter settings.
2020-03-27 20:36:06 +04:00
John Preston
4f718aeead
Add filter icons to Settings -> Folders.
2020-03-27 20:36:05 +04:00
John Preston
e8bf5bb5ce
Move manage filters to a Settings section.
2020-03-27 20:36:05 +04:00
John Preston
568325f201
Show folders in settings async.
2020-03-27 20:36:05 +04:00
John Preston
ffc65f7da4
Add folders menu to Settings.
2020-03-27 20:36:03 +04:00
John Preston
4881981cf6
Enable / disable side bar based on filters.
2020-03-27 20:36:03 +04:00
John Preston
71f7aae948
Replace dialogs mode with filters.
2020-03-27 20:36:01 +04:00
Ilya Fedin
8b704f9bd7
Fix escaping in linux launcher creating
2020-02-27 11:51:28 +04:00
23rd
bc6e1e7a0d
Added new setting for automatic dictionaries download.
2020-02-24 18:48:33 +03:00
23rd
9daf362df6
Added label with state to "Manage dictionaries" button.
2020-02-24 18:48:33 +03:00
23rd
4bd34b35ae
Added button to advanced settings for dictionary management box.
2020-02-24 18:48:33 +03:00
23rd
65a7f2e7d8
Added dictionary management box.
2020-02-24 18:48:33 +03:00
John Preston
c8d2ac9583
Move message ownership to History.
2020-02-21 18:48:29 +04:00
Ilya Fedin
05eabfd539
Add autostart support for linux
2020-01-28 16:44:27 +03:00
23rd
b4fbff0b6c
Fixed build for Windows with c++latest.
2020-01-21 20:29:14 +03:00
John Preston
4eeac7dc18
Fix whitespace and indentation errors.
...
See #6672 , thanks Sea-n.
2020-01-02 14:25:53 +03:00
Nicholas Guriev
22585ca919
Activate spellchecking on Linux
2019-12-29 18:13:42 +03:00
John Preston
616957e46f
Add file size limit to autoplay settings.
2019-12-24 13:09:04 +03:00
John Preston
c4319a7370
Add a separate setting for video files autoplay.
2019-12-19 14:48:53 +03:00
John Preston
8e8c356659
Use streamed video for GIFs in History.
2019-12-10 15:49:37 +03:00
John Preston
431b7445c3
Allow editing sensitive content filtering.
2019-12-09 15:59:08 +03:00
John Preston
ee94e78533
All mtproto downloads using DownloadMtprotoTask.
2019-12-05 11:32:33 +03:00
John Preston
e943264823
Pass MTP::Instance to MTP::Sender.
2019-11-29 15:36:05 +03:00
John Preston
08bfe6f1c1
Extract mtproto key generation code.
2019-11-15 16:16:32 +03:00
Nicholas Guriev
793862bee6
Fix -Wredundant-move and -Wdeprecated-copy warnings ( #6663 )
...
* Do not move result at end of function
This makes GCC 9.1.2 happy with the active -Wredundant-move warning.
Indeed, such moving of local variables or local arguments before
returning is unnecessary and prevents the compiler from copy elision
optimization.
2019-11-12 18:15:34 +03:00
23rd
c867727e1c
Removed spellcheck setting for OS X 10.10/10.11 version.
2019-11-06 15:31:41 +03:00
John Preston
3fd2d73f04
Fix layout in the spellchecker settings block.
2019-11-05 17:44:39 +03:00
John Preston
d63e50944a
Update submodules to the latest spellcheck.
2019-11-05 13:23:56 +03:00
23rd
1056021059
Added new setting to disable spellchecker.
2019-10-20 21:11:37 +04:00
John Preston
bc2a0fb505
Use TL code generator from lib_tl.
2019-10-19 12:27:56 +04:00
John Preston
30a1bd7ba2
Use base::call_delayed.
2019-10-19 12:27:56 +04:00
John Preston
a6c84c36c0
Use layers and boxes from lib_ui.
2019-10-19 12:27:52 +04:00
John Preston
246c45ce0e
Use lib_ui from submodule.
2019-10-19 12:27:28 +04:00
John Preston
c5845f17ae
Remove twidget header.
2019-10-01 23:59:46 +03:00
John Preston
e2f54eb3e9
Move some style code to lib_ui.
2019-10-01 23:59:46 +03:00
John Preston
0c713a930a
Remove app.h / facades.h from precompiled header.
2019-10-01 23:59:46 +03:00
John Preston
aa10934e85
Fix messing up accent color if editor is opened.
2019-09-09 12:02:06 +03:00
John Preston
95da2dbc34
Move create theme button to three-dot menu.
2019-09-08 15:47:22 +03:00
John Preston
4951eeac98
Allow creating desktop part of multi-theme.
2019-09-06 19:31:07 +03:00
John Preston
7485f0c960
Don't change real theme when editing.
2019-09-06 19:31:07 +03:00
John Preston
03bdd80b2f
Open theme editor for existing themes.
2019-09-06 19:31:07 +03:00
John Preston
dd74f57a66
Display full themes list in Settings.
2019-09-06 19:31:07 +03:00
John Preston
534772722e
Improve theme selector design.
2019-09-06 19:31:07 +03:00
John Preston
6343221d7b
Remove many includes from stdafx.pch.
2019-09-06 19:31:07 +03:00
John Preston
4929de2bfb
Apply cloud themes.
2019-09-06 19:31:06 +03:00
John Preston
ac8f924909
Show tdesktop cloud themes in a box.
2019-09-06 19:31:06 +03:00
John Preston
229bc56cc8
Upload saved theme to the cloud.
2019-09-06 19:31:06 +03:00
John Preston
4b045a602c
Add a box for new theme creating.
2019-09-06 19:31:06 +03:00
John Preston
1e3b72ab74
Ignore background when checking which theme is used.
2019-09-06 19:31:06 +03:00
John Preston
7893ad0558
Mark all types of local history items.
2019-09-06 10:53:44 +03:00
John Preston
85cca51154
Make accent color radiobutton animated.
2019-09-02 13:39:43 +03:00
John Preston
405ccb8580
Add editing of AddedByPhone privacy.
2019-08-29 11:44:03 +03:00
John Preston
bd7cee2252
Improve accent color choose design.
2019-08-29 10:01:28 +03:00
John Preston
117d6192fa
Ensure contrast in colorized themes.
2019-08-29 10:01:28 +03:00
John Preston
763bdf8798
Apply lightness limits in accent colors.
2019-08-29 10:01:28 +03:00
John Preston
56a82600f8
Add HSL color picker box for theming.
2019-08-29 10:01:28 +03:00
John Preston
a465117689
Allow choosing accent colors from palette.
2019-08-27 19:10:37 +03:00
John Preston
c2117e7722
Save embedded themes accent colors.
2019-08-27 19:10:37 +03:00
John Preston
7de28fc4bd
Apply saturation and value in colorizer.
2019-08-27 19:10:37 +03:00
John Preston
9cb5423d40
Allow changing accent color in default themes.
2019-08-27 19:10:37 +03:00
John Preston
549789bfb7
Update API scheme to layer 105.
2019-08-27 19:10:37 +03:00
John Preston
02b65a42f7
Move message client flags to a separate field.
2019-08-09 20:19:23 +01:00
John Preston
fb00d523c3
Add theme names to langpack.
2019-08-09 11:51:35 +01:00
John Preston
4bad642190
Remove some more Auth() calls.
2019-08-09 11:50:49 +01:00
John Preston
93a52bb66e
Move some settings from global to Session.
2019-08-09 11:50:49 +01:00
John Preston
708b1d7ad4
Add 'Loop animated stickers' setting.
2019-08-09 11:50:49 +01:00
John Preston
bacaf805b5
Pass SessionNavigation to some boxes.
2019-07-25 20:55:11 +02:00
John Preston
137fa0378c
Remove some more Auth() calls.
2019-07-24 16:00:30 +02:00
John Preston
ff44094ded
Rename AuthSession to Main::Session.
2019-07-24 13:45:24 +02:00
John Preston
06982fdf04
Remove some calls to Auth().
2019-07-24 13:13:51 +02:00
John Preston
9cf4cf6dca
Move MTP::Instance to Main::Account.
2019-07-24 10:46:23 +02:00
John Preston
873b77cf40
Use UserData::isBot where applicable.
2019-07-24 08:02:20 +02:00
John Preston
c5df4db621
Fix possible race conditions in msgid().
2019-07-15 16:00:30 +02:00
John Preston
77b8d56c03
Show 'None' if no users are blocked.
2019-07-15 14:12:27 +02:00
John Preston
567bf60644
Use getters in MTP classes.
2019-07-05 16:23:07 +02:00
John Preston
9d09cee1cc
Unblock bots without restarting from Settings.
2019-07-04 16:26:53 +02:00
John Preston
4917ca7b32
Remove all legacy global namespace langs.
2019-06-21 11:06:52 +02:00
John Preston
87fc066e67
Use tr:: instead of lang().
2019-06-21 11:06:51 +02:00
John Preston
52e40cbc6e
Improve non-authed language switch.
2019-06-21 11:06:50 +02:00
John Preston
a7c8feaecb
Use tr:: instead of langFactory and __rich.
2019-06-21 11:06:50 +02:00
John Preston
d1d98c3bb1
Use tr:: instead of langFactory in box titles.
2019-06-21 11:06:50 +02:00
John Preston
8ed433cc01
Use tr:: instead of langFactory in input fields.
2019-06-21 11:06:49 +02:00
John Preston
7af0dd105e
Use tr:: instead of Lang::Viewer.
2019-06-21 11:06:49 +02:00
John Preston
faa42110ac
Remove Info::Profile::ToUpperValue.
2019-06-21 11:06:48 +02:00
John Preston
a68a53d768
Prepare PasscodeBox for generic 2sv checking.
2019-06-21 11:06:47 +02:00
John Preston
0dddb7694f
Show transfer community button, set 2sv password.
2019-06-21 11:06:47 +02:00
John Preston
ca7c50fbcd
Remove pseudo-HTML from langpacks and Ui::Text::String.
2019-06-21 11:06:46 +02:00
John Preston
5e3734d7bf
ReportSpamPanel -> HistoryView::ContactStatus.
2019-06-21 11:06:45 +02:00
John Preston
a547f80ae9
Rename Window::Controller to Window::SessionController.
2019-06-06 13:21:40 +03:00
23rd
ed7a88ca17
Fixed display of update checking when autoupdate is toggled.
2019-06-05 01:09:31 +03:00
John Preston
9c613fe2f7
Move system versions to platform/platform_info.
2019-06-04 14:23:14 +03:00
John Preston
af85aec33b
Allow disabling pinned messages notifications.
...
Fixes #1864 .
2019-05-28 16:59:35 +02:00
John Preston
371f1a51c3
Preload blocked users slice in Settings.
2019-05-27 15:09:47 +02:00
John Preston
8660f976a9
Add phone number privacy.
...
Also move calls peer-to-peer privacy inside calls privacy.
2019-05-27 15:09:15 +02:00
John Preston
6b80ff4bcc
Support groups in privacy settings.
2019-05-27 15:09:12 +02:00
John Preston
c4aac5fa0e
Update API scheme to layer 100.
2019-05-27 15:09:06 +02:00
John Preston
7ee16ba45c
Clear hidden animated stickers.
2019-05-27 14:11:26 +02:00
23rd
47910b2ae1
Added '-scale' command-line argument for custom scale.
...
- Fixed #5272 .
- Fixed #5365 .
- Fixed #6055 .
2019-05-27 14:10:36 +02:00
John Preston
08bddc5579
Move messages data to AuthSession.
2019-05-01 16:11:42 +04:00
John Preston
854870683b
Add ability to archive/unarchive the chats.
2019-05-01 16:11:35 +04:00
John Preston
b5be6df5e2
Copy text with expanded links only to external.
...
Paste valid custom links in message field if copied from messages.
2019-04-08 19:10:06 +04:00
John Preston
99bb09374d
Use new animations engine everywhere.
2019-04-02 14:33:53 +04:00
John Preston
a6e96f9a28
Use new animations engine in all Basic-s.
2019-04-02 14:33:53 +04:00
John Preston
8c6e72b21a
Hide Nobody option from profile photo privacy.
2019-03-25 11:57:04 +04:00
John Preston
b972da059a
Show explaining preview of forwards privacy.
2019-03-24 12:12:42 +04:00
John Preston
81862215b4
Add forwards and profile photo privacy settings.
2019-03-24 12:12:42 +04:00
John Preston
399aed4087
Remove setting for Mac App Store version.
2019-03-20 14:31:32 +04:00
John Preston
be53cb027c
Possibly fix a crash in microphone testing.
2019-03-20 13:00:38 +04:00
John Preston
0df628dc7a
Fix notifications hiding on Linux.
...
Regression was introduced in 3372dfcd3e
.
Only when platform-specific code can give us the global time of the
last user input event we rely on idle time for notifications hiding.
Fixes #5791 .
2019-03-14 21:59:10 +04:00
John Preston
13a9b967e9
Use user phrases for support accounts.
2019-03-12 14:38:59 +04:00
John Preston
e631d98230
Implement media cache management.
2019-03-11 12:08:09 +04:00
John Preston
fe618bd652
Use crl::time/now instead of TimeMs/getms.
2019-02-19 11:06:33 +04:00
John Preston
032694ad9e
Move files to media/audio and media/clip.
2019-02-13 15:41:33 +03:00
John Preston
890aacaeee
Allow to blur wallpapers from file.
2019-02-08 16:55:02 +03:00
John Preston
fd8e9dad92
Fix pattern wallpapers with themes.
2019-01-29 14:52:33 +03:00
John Preston
b6edf4561d
Add support for pattern wallpapers.
2019-01-29 14:52:33 +03:00
John Preston
f506a5ea6c
Save wallpaper settings locally.
2019-01-29 14:52:33 +03:00
John Preston
a1baa23a52
Use both thumbnails in photos and documents.
...
Fixes #5602 .
2019-01-28 13:10:45 +03:00
John Preston
a70e72f75d
Application->Sandbox, Messenger->Application.
2019-01-23 12:51:58 +04:00
John Preston
4111da1dd0
Move some calls from App namespace.
2019-01-22 17:10:01 +04:00
John Preston
314e30272b
Replace SingleTimer with base::Timer.
2019-01-18 16:41:08 +04:00
John Preston
61b9a32504
Add 'Contact joined' notifications setting.
2019-01-18 16:41:08 +04:00
John Preston
1894b8fcf7
Handle t.me/bg links with wallpapers / colors.
2019-01-18 16:41:07 +04:00
John Preston
466c6da5e3
Save wallpaper information.
2019-01-17 12:21:31 +04:00
John Preston
c5a41e1f55
Divide data/data_peer and remove from PCH.
2019-01-17 12:21:29 +04:00
John Preston
65430d92ea
Refactor calls settings panel.
2019-01-11 17:30:57 +04:00
John Preston
8711830f66
Move calls settings to Settings > Advanced.
...
Also add calls settings button to the calls list box.
2019-01-11 17:30:57 +04:00
John Preston
bb8defeb42
Improve change emoji set box design.
2019-01-11 17:30:57 +04:00
John Preston
de00e0e15c
Add simple switch emoji set box.
2019-01-11 17:30:00 +04:00
Gregory K
11b991cddc
Add call settings ( #5540 )
2019-01-05 15:08:02 +04:00
John Preston
a0c6104fae
Redesign auto download box.
2018-12-25 22:15:22 +04:00
John Preston
9c579e0d5b
Fix crash in wrong confirm email button.
2018-12-25 14:53:47 +04:00
John Preston
8bd3051224
Fix crop photo box title.
2018-12-23 21:23:36 +04:00
John Preston
efe3dfad5c
Fix crash in radiobutton destruction.
...
It crashed if the button was destroyed from group _changedCallback.
2018-12-05 13:55:59 +04:00
John Preston
61add763ae
Restart instead of Unblock for bots.
2018-12-04 15:46:07 +04:00
John Preston
6562a1f6af
Add 'Count unread messages' option.
2018-12-04 14:32:48 +04:00
John Preston
9f5b09c263
Add emoji autocomplete to all fields.
2018-11-21 14:09:46 +04:00
John Preston
123523ef62
Separate some lang phrases.
2018-11-20 19:38:39 +04:00
John Preston
be3e43e6cb
Confirm 2sv recovery email by code.
2018-11-20 19:38:39 +04:00
John Preston
8d27d8efcf
Use cloud-based settings for p2p in calls.
2018-11-16 20:17:58 +04:00
John Preston
26b8515cb5
Improve languages box and language local storing.
...
Use current language native name instead of lng_language_name value.
2018-11-16 20:17:58 +04:00
John Preston
e992702783
Load chats in chunks in support mode.
2018-11-09 17:54:34 +04:00
John Preston
e482f041a8
Allow disabling even system proxy settings.
...
Fixes #4944 .
2018-11-05 18:52:01 +04:00
John Preston
3447aac940
Prefix client-side lang_code-s with #.
2018-11-04 15:51:39 +04:00
John Preston
711b8cfa36
Fix auto interface scale by primary screen dpi.
2018-11-04 15:51:39 +04:00
John Preston
595134cab5
Move image-related modules to ui/image/.
2018-11-04 15:51:37 +04:00
John Preston
113f665295
Move Image and derived to ui/image.
2018-11-04 15:51:36 +04:00
John Preston
5b4abe69aa
Add interface scale (100%..150%) for Retina.
...
Fixes #69 , fixes #3126 , fixes #3789 .
2018-10-16 23:00:55 +03:00
John Preston
19a9a990b6
Allow using any interface scale between 100%-300%.
2018-10-16 11:38:09 +03:00
John Preston
e896971fa4
Allow instant template selection (support).
2018-10-11 19:07:37 +03:00
John Preston
81a9554caa
Move some settings to the main menu (support).
2018-10-09 19:27:18 +03:00
John Preston
3f1f070d3f
Move sessions list up in Settings.
2018-10-09 19:27:18 +03:00
John Preston
9d4d3cc5e3
Show toast when reloading templates (support).
2018-10-09 19:27:17 +03:00
John Preston
6ba0755e15
Move support to the main settings (support).
2018-10-09 19:27:17 +03:00
John Preston
1411dfb711
Add autoupdating for templates (support).
2018-10-09 19:27:17 +03:00
John Preston
25cefc6eab
Allow fix chats order and auto switch (support).
2018-10-09 19:27:16 +03:00