Skip to content

Commit 3397c58

Browse files
committed
11565: Skip onChanged notifications when resetting preferences for settings who have their default values
1 parent 34a44a5 commit 3397c58

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/framework/global/settings.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ void Settings::reset(bool keepDefaultSettings, bool notifyAboutChanges)
114114
}
115115

116116
for (auto it = m_items.begin(); it != m_items.end(); ++it) {
117+
if (it->second.value == it->second.defaultValue) {
118+
continue;
119+
}
120+
117121
it->second.value = it->second.defaultValue;
118122

119123
Channel<Val>& channel = findChannel(it->first);

0 commit comments

Comments
 (0)