Skip to content
Snippets Groups Projects
Commit d4cbafe1 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Merge branch 'feature/gui2' of gitlab.utu.fi:nicolas.pope/ftl into feature/gui2

parents 7775ec9a bae710b4
No related branches found
No related tags found
1 merge request!316Resolves #343 GUI and Frame Refactor
Pipeline #28587 failed
...@@ -268,8 +268,8 @@ void Frame::store() { ...@@ -268,8 +268,8 @@ void Frame::store() {
if (!parent_) return; if (!parent_) return;
{
UNIQUE_LOCK(parent_->mutex(), lk); UNIQUE_LOCK(parent_->mutex(), lk);
for (auto c : changed_) { for (auto c : changed_) {
if (ftl::data::isPersistent(c.first) && hasOwn(c.first)) { if (ftl::data::isPersistent(c.first) && hasOwn(c.first)) {
auto &d = data_[c.first]; auto &d = data_[c.first];
...@@ -282,7 +282,6 @@ void Frame::store() { ...@@ -282,7 +282,6 @@ void Frame::store() {
d.status = ChannelStatus::INVALID; d.status = ChannelStatus::INVALID;
} }
parent_->change_.trigger(*this, c.first);
uint64_t sig = (uint64_t(id()) << 32) + static_cast<unsigned int>(c.first); uint64_t sig = (uint64_t(id()) << 32) + static_cast<unsigned int>(c.first);
const auto &i = parent_->change_channel_.find(sig); const auto &i = parent_->change_channel_.find(sig);
...@@ -290,6 +289,11 @@ void Frame::store() { ...@@ -290,6 +289,11 @@ void Frame::store() {
} }
} }
for (auto c : changed_) {
parent_->change_.trigger(*this, c.first);
}
}
void Frame::_primaryStore() { void Frame::_primaryStore() {
if (mode_ == FrameMode::RESPONSE) return; if (mode_ == FrameMode::RESPONSE) return;
forceStore(); forceStore();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment