Fixed splits losing filters when closing and reopening them (#3351)
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
@@ -51,6 +51,7 @@
|
|||||||
- Bugfix: Fixed the reconnection backoff accidentally resetting when thrown out of certain IRC servers. (#3328)
|
- Bugfix: Fixed the reconnection backoff accidentally resetting when thrown out of certain IRC servers. (#3328)
|
||||||
- Bugfix: Fixed underlying text from disabled emotes not being colorized properly. (#3333)
|
- Bugfix: Fixed underlying text from disabled emotes not being colorized properly. (#3333)
|
||||||
- Bugfix: Fixed IRC ACTION messages (/me) not being colorized properly. (#3341)
|
- Bugfix: Fixed IRC ACTION messages (/me) not being colorized properly. (#3341)
|
||||||
|
- Bugfix: Fixed splits losing filters when closing and reopening them (#3351)
|
||||||
- Bugfix: Fixed the first usercard being broken in `/mods` and `/vips` (#3349)
|
- Bugfix: Fixed the first usercard being broken in `/mods` and `/vips` (#3349)
|
||||||
- Dev: Add GitHub action to test builds without precompiled headers enabled. (#3327)
|
- Dev: Add GitHub action to test builds without precompiled headers enabled. (#3327)
|
||||||
- Dev: Renamed CMake's build option `USE_SYSTEM_QT5KEYCHAIN` to `USE_SYSTEM_QTKEYCHAIN`. (#3103)
|
- Dev: Renamed CMake's build option `USE_SYSTEM_QT5KEYCHAIN` to `USE_SYSTEM_QTKEYCHAIN`. (#3103)
|
||||||
|
|||||||
@@ -399,6 +399,7 @@ void Window::addShortcuts()
|
|||||||
Split *split = new Split(splitContainer);
|
Split *split = new Split(splitContainer);
|
||||||
split->setChannel(
|
split->setChannel(
|
||||||
getApp()->twitch.server->getOrAddChannel(si.channelName));
|
getApp()->twitch.server->getOrAddChannel(si.channelName));
|
||||||
|
split->setFilters(si.filters);
|
||||||
splitContainer->appendSplit(split);
|
splitContainer->appendSplit(split);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
#include "common/Channel.hpp"
|
#include "common/Channel.hpp"
|
||||||
#include "widgets/helper/NotebookTab.hpp"
|
#include "widgets/helper/NotebookTab.hpp"
|
||||||
|
|
||||||
|
#include <QUuid>
|
||||||
#include <deque>
|
#include <deque>
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
@@ -14,6 +15,7 @@ class ClosedSplits
|
|||||||
public:
|
public:
|
||||||
struct SplitInfo {
|
struct SplitInfo {
|
||||||
QString channelName;
|
QString channelName;
|
||||||
|
QList<QUuid> filters;
|
||||||
NotebookTab *tab; // non owning ptr
|
NotebookTab *tab; // non owning ptr
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -255,7 +255,8 @@ void SplitContainer::addSplit(Split *split)
|
|||||||
tab->connect(tab, &QWidget::destroyed, [tab]() mutable {
|
tab->connect(tab, &QWidget::destroyed, [tab]() mutable {
|
||||||
ClosedSplits::invalidateTab(tab);
|
ClosedSplits::invalidateTab(tab);
|
||||||
});
|
});
|
||||||
ClosedSplits::push({split->getChannel()->getName(), tab});
|
ClosedSplits::push({split->getChannel()->getName(),
|
||||||
|
split->getFilters(), tab});
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user