refactor: move TimeoutStackStyle to its own file (#6216)

Co-authored-by: Mm2PL <miau@mail.kotmisia.pl>
This commit is contained in:
pajlada
2025-05-18 13:41:43 +02:00
committed by GitHub
parent 1baa4b4729
commit 0d4a45161e
6 changed files with 17 additions and 11 deletions
+1
View File
@@ -42,6 +42,7 @@
- Dev: Bumped deprecation cutoff to Qt 6.4.3. (#6169)
- Dev: Use `QMetaObject::invokeMethod` to run code on a specific thread. (#6203)
- Dev: Added a `run-and-kill.sh` script to help debug crash-on-exit bugs. (#6188)
- Dev: Refactored the `TimeoutStackStyle` enum into its own file. (#6216)
- Dev: Refactored event API initialization away from Application and into TwitchIrcServer. (#6198)
- Dev: Updated GoogleTest to v1.17.0. (#6180)
- Dev: Mini refactor of `TwitchAccount`. (#6182)
+3 -2
View File
@@ -19,10 +19,10 @@ set(SOURCE_FILES
common/Args.cpp
common/Args.hpp
common/Channel.cpp
common/Channel.hpp
common/ChannelChatters.cpp
common/ChannelChatters.hpp
common/Channel.cpp
common/Channel.hpp
common/ChatterinoSetting.cpp
common/ChatterinoSetting.hpp
common/ChatterSet.cpp
@@ -38,6 +38,7 @@ set(SOURCE_FILES
common/Modes.hpp
common/QLogging.cpp
common/QLogging.hpp
common/TimeoutStackStyle.hpp
common/WindowDescriptors.cpp
common/WindowDescriptors.hpp
-8
View File
@@ -20,14 +20,6 @@ namespace chatterino {
struct Message;
using MessagePtr = std::shared_ptr<const Message>;
enum class TimeoutStackStyle : int {
StackHard = 0,
DontStackBeyondUserMessage = 1,
DontStack = 2,
Default = DontStackBeyondUserMessage,
};
class Channel : public std::enable_shared_from_this<Channel>, public MessageSink
{
public:
+11
View File
@@ -0,0 +1,11 @@
namespace chatterino {
enum class TimeoutStackStyle : int {
StackHard = 0,
DontStackBeyondUserMessage = 1,
DontStack = 2,
Default = DontStackBeyondUserMessage,
};
} // namespace chatterino
+1
View File
@@ -1,6 +1,7 @@
#include "singletons/ImageUploader.hpp"
#include "Application.hpp"
#include "common/Channel.hpp"
#include "common/Env.hpp"
#include "common/network/NetworkRequest.hpp"
#include "common/network/NetworkResult.hpp"
+1 -1
View File
@@ -1,10 +1,10 @@
#pragma once
#include "common/Channel.hpp"
#include "common/ChatterinoSetting.hpp"
#include "common/enums/MessageOverflow.hpp"
#include "common/Modes.hpp"
#include "common/SignalVector.hpp"
#include "common/TimeoutStackStyle.hpp"
#include "controllers/filters/FilterRecord.hpp"
#include "controllers/highlights/HighlightBadge.hpp"
#include "controllers/highlights/HighlightBlacklistUser.hpp"