chore: add some channel view layout commands (#6342)

This commit is contained in:
nerix
2025-07-18 20:28:46 +02:00
committed by GitHub
parent 09fc5d74bc
commit cda625f3ce
5 changed files with 36 additions and 1 deletions
@@ -14,6 +14,7 @@
#include "providers/twitch/TwitchIrcServer.hpp"
#include "singletons/Theme.hpp"
#include "singletons/Toasts.hpp"
#include "singletons/WindowManager.hpp"
#include "util/PostToThread.hpp"
#include <QApplication>
@@ -139,6 +140,24 @@ QString forceImageUnload(const CommandContext &ctx)
return "";
}
QString forceLayoutChannelViews(const CommandContext & /*ctx*/)
{
getApp()->getWindows()->forceLayoutChannelViews();
return {};
}
QString incrementImageGeneration(const CommandContext & /*ctx*/)
{
getApp()->getWindows()->incGeneration();
return {};
}
QString invalidateBuffers(const CommandContext & /*ctx*/)
{
getApp()->getWindows()->invalidateChannelViewBuffers();
return {};
}
QString debugTest(const CommandContext &ctx)
{
if (!ctx.channel)