Commit graph

207 commits

Author SHA1 Message Date
Ilya Fedin
2be4641496 Install launcher on every launch on Linux
Just like AppUserModelId on Windows

This makes the cheat code and having the function outside of private namespace unnecessary
2023-01-23 12:16:59 +04:00
John Preston
ec3957fcf3 Active round video moving to active window. 2023-01-19 11:42:00 +04:00
John Preston
0f234188e1 Fix crash in SystemMediaControls init. 2023-01-19 09:57:33 +04:00
John Preston
cdfdccbb66 Detach SystemMediaControls from Window::Controller. 2023-01-19 09:46:20 +04:00
John Preston
ba520aadcb Fix hashtags in separate windows. 2023-01-19 09:46:19 +04:00
John Preston
3e332ad8e7 Rewrite shortcuts using QAction.
That way they don't depend on the main window.
2023-01-19 09:46:19 +04:00
John Preston
7023b013ce Initial support of separate windows for accounts. 2023-01-19 09:45:28 +04:00
Ilya Fedin
95979b1ad9 Call scheme handler registration after opening main window
To avoid system dialog being under it
2023-01-19 08:33:45 +04:00
Ilya Fedin
7307f0b1a5 Use temp directory for downloads in Linux sandbox by default 2023-01-09 16:09:57 +04:00
Ilya Fedin
0eec470387 Hide default download folder option if it's not available 2022-12-29 14:18:08 +04:00
Ilya Fedin
66093f0cb5 cTimeFormat/cDateFormat -> QLocale::ShortFormat
This allows to use platform-specific formatting functions
2022-12-28 10:28:12 +04:00
John Preston
e878ccccb4 Fix crash in sending media with spoilers. 2022-12-27 11:48:54 +04:00
23rd
f8a17bd9c9 Moved tmp string for temporary folder to single place. 2022-11-30 17:17:16 +03:00
23rd
4fabb3f2a2 Replaced some qsl with u""_q literal. 2022-11-30 17:17:14 +03: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
5d8a2bc7b7 Implement simple sub-column for topics list. 2022-11-30 13:03:42 +04:00
23rd
2acedca6b7 Replaced some qstr with u""_q literal. 2022-11-29 14:12:50 +03:00
Ilya Fedin
54a0f443b4 Better check for download path availability in sandbox 2022-11-28 12:16:57 +01:00
Ilya Fedin
b383dad6ac Install launcher before registering URL scheme 2022-11-28 12:12:09 +01:00
Ilya Fedin
2f0d14bd35 Use customWorkingDir() outside of Core::Launcher
This allows to add -workdir to shortcuts only if the process was launched with -workdir
2022-11-21 21:30:17 +00:00
John Preston
644ec1f599 Remove base::Observable / base::Variable. 2022-11-11 11:43:24 +04:00
John Preston
092923fe6e Don't autodownload files if sandbox prevents it.
Partially fixes #25308.
2022-11-08 18:26:02 +04:00
John Preston
7cdf20a7c5 Allow topic deletion. 2022-11-01 19:25:40 +04:00
John Preston
df5602d203 Support topic icon display in topic profile. 2022-11-01 19:25:40 +04:00
John Preston
ead427793b Handle forum / topic links. 2022-11-01 19:25:38 +04:00
John Preston
6695eda1be Handle forum-non_forum changes in realtime. 2022-11-01 19:25:37 +04:00
Ilya Fedin
7b5781b845 Use default-constructed QLocale for date/time/whatever else formatting
Qt 6 chenged the QDateTime API to use QLocale::c() rather than QLocale::system(), using default-constructed QLocale will make this consistent and overradable application-wide

Other formating use-cases as QLocale::decimalPoint use default-constructed QLocale now, too
2022-10-17 08:33:22 +04:00
John Preston
aa674a0ea5 Fix UB in closing chat across all windows. 2022-09-23 23:32:21 +04:00
John Preston
749fb52113 Implement animated spoilers. 2022-09-18 16:52:30 +04:00
John Preston
a919978a37 Use spoiler animation for ExtendedMedia. 2022-09-12 09:06:26 +04:00
Ilya Fedin
5fc7caeec9 Provide old version to Platform::NewVersionLaunched 2022-09-01 13:53:53 +04:00
John Preston
aa484ac015 Fix crash on launch with passcode. 2022-06-15 14:49:06 +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
23rd
1d475ee727 Slightly optimized includes in application.h. 2022-06-12 16:07:41 +03:00
23rd
948ce77a8f Improved deleting peer from non-primary windows. 2022-06-09 04:20:13 +03:00
23rd
873301e7df Fixed handling of requests to open media from non-primary windows. 2022-06-08 11:59:30 +03:00
23rd
16e61ae2b2 Fixed lock by local passcode for non-primary windows. 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
1d7e901b7a Improved processing of premium accounts limits. 2022-06-02 13:56:01 +03:00
23rd
c47140c62d Fixed window activation by clicking on tray icon for macOS. 2022-05-05 16:52:09 +03:00
23rd
0e16a50bbc Completely removed common and platform code for tray from main window. 2022-05-03 04:25:36 +03:00
23rd
56fdc7d39a Added common and macOS tray implementations. 2022-05-03 04:25:36 +03:00
23rd
de194c4aa2 Initialized empty files for tray implementations. 2022-05-03 04:25:35 +03:00
23rd
511805199f Added ability to check are windows active for tray menu. 2022-05-03 04:25:35 +03:00
John Preston
273f2f7ce9 Prolong bot attach webview. 2022-03-30 12:23:06 +04:00
John Preston
602e7a7164 Warn on quit if downloading files. 2022-03-09 15:36:14 +04:00
23rd
5718789d53 Replaced Ui::InformBox and Ui::ConfirmBox with GenericBox. 2022-02-28 09:08:01 +03:00
23rd
06d5d8859a Added extracting of session controller from context for custom urls. 2022-02-25 19:41:16 +03:00
John Preston
280d79fecc Add observing Data::DownloadManager. 2022-02-25 14:14:43 +03:00