mirror-chatterino2/src/singletons
askepticaldreamer 4c782ce90c
Add feature to select channels to log (#4302)
* Add checkbox for custom logging and table with channels to log on Logs page

* Add checkbox to enable and disable logging per channel

* Return from addMessage before logging if custom logging enabled and channel does not have logging enabled

* Use clang-format to fix formatting

* Add CHANGELOG.md entry

* Resolve PR comments

* Remove toggle for channels so any channel listed will be logged

* Move Only log channels listed below checkbox to just above table

* Fix formatting

* Re-order changelog

* ChannelLog constructor: Copy & move instead of const ref & copy

* ChannelLog::createEmpty: Curly brace initialize instead of repeating
name

* ChannelLog toString & createEmpty: nodiscard

* Use COUNT paradigm in model column

* Remove ChanneLoggingModel source file comments

* Use Column::Channel in getRowFromItem

* Rename `getItemFromRow` parameter and mark it as unused

* Curly brace initialize ChannelLog

* private & friend class the model

* Filter out channels to log using a set instead of iterating over a vector every time a message comes in

* Rename `ChannelLog::channel` member to `ChannelLog::channelName`

Also made it private

* mini comment on ChannelLog

Co-authored-by: Felanbird <41973452+Felanbird@users.noreply.github.com>
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
2023-01-15 11:47:22 +00:00
..
helper Remove Unnecessary Includes in Headers (#4275) 2022-12-31 14:41:01 +00:00
Badges.cpp this commit is too big 2018-08-02 14:23:27 +02:00
Badges.hpp Remove Unnecessary Includes in Headers (#4275) 2022-12-31 14:41:01 +00:00
Emotes.cpp Remove Unnecessary Includes in Headers (#4275) 2022-12-31 14:41:01 +00:00
Emotes.hpp Remove Unnecessary Includes in Headers (#4275) 2022-12-31 14:41:01 +00:00
Fonts.cpp Remove Unnecessary Includes in Headers (#4275) 2022-12-31 14:41:01 +00:00
Fonts.hpp Sort and force grouping of includes (#4172) 2022-11-27 19:32:53 +01:00
Logging.cpp Add feature to select channels to log (#4302) 2023-01-15 11:47:22 +00:00
Logging.hpp Add feature to select channels to log (#4302) 2023-01-15 11:47:22 +00:00
NativeMessaging.cpp Sort and force grouping of includes (#4172) 2022-11-27 19:32:53 +01:00
NativeMessaging.hpp Remove Unnecessary Includes in Headers (#4275) 2022-12-31 14:41:01 +00:00
Paths.cpp Sort and force grouping of includes (#4172) 2022-11-27 19:32:53 +01:00
Paths.hpp Sort and force grouping of includes (#4172) 2022-11-27 19:32:53 +01:00
Resources.cpp moved resources out of Application 2019-09-22 10:54:32 +02:00
Resources.hpp 🔨 Automatically generate resources files with cmake (#4159) 2022-11-19 12:29:12 +01:00
Settings.cpp Add feature to select channels to log (#4302) 2023-01-15 11:47:22 +00:00
Settings.hpp Add feature to select channels to log (#4302) 2023-01-15 11:47:22 +00:00
Theme.cpp Add ability to pin Usercards to stay open even if it loses focus (#3884) 2022-11-12 12:21:43 +00:00
Theme.hpp Remove Unnecessary Includes in Headers (#4275) 2022-12-31 14:41:01 +00:00
Toasts.cpp Remove Unnecessary Includes in Headers (#4275) 2022-12-31 14:41:01 +00:00
Toasts.hpp Remove Unnecessary Includes in Headers (#4275) 2022-12-31 14:41:01 +00:00
Updates.cpp Remove Unnecessary Includes in Headers (#4275) 2022-12-31 14:41:01 +00:00
Updates.hpp Sort and force grouping of includes (#4172) 2022-11-27 19:32:53 +01:00
WindowManager.cpp Remove Deprecated QDesktopWidget (#4287) 2023-01-07 11:41:39 +01:00
WindowManager.hpp Remove Unnecessary Includes in Headers (#4275) 2022-12-31 14:41:01 +00:00