Skip to content

Commit 5712c13

Browse files
authored
VPN-6892 fix reinstate message (#10318)
1 parent db97e06 commit 5712c13

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/addons/manager/addonmanager.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,14 +419,20 @@ QJSValue AddonManager::reduce(QJSValue callback, QJSValue initialValue) const {
419419

420420
// Undismisses any dismissed messages and marks all messages as unread
421421
void AddonManager::reinstateMessages() const {
422+
logger.debug() << "Reinstating all messages";
422423
SettingsHolder* settingsHolder = SettingsHolder::instance();
423424
Q_ASSERT(settingsHolder);
424425

425426
// Group containing all the message settings.
426427
// It only needs to live for the scope of this function.
427428
SettingGroup* messageSettingGroup =
428429
SettingsManager::instance()->createSettingGroup(
429-
ADDON_MESSAGE_SETTINGS_GROUP);
430+
QString("%1/%2")
431+
.arg(Constants::ADDONS_SETTINGS_GROUP)
432+
.arg(ADDON_MESSAGE_SETTINGS_GROUP),
433+
true, // remove when reset
434+
false // sensitive setting
435+
);
430436
messageSettingGroup->remove();
431437
}
432438

src/ui/screens/getHelp/developerMenu/ViewDeveloperMenu.qml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ MZViewBase {
230230
text: "Reinstate messages"
231231
onClicked: {
232232
MZAddonManager.reinstateMessages()
233+
restartRequired.isVisible = true
233234
}
234235
}
235236

0 commit comments

Comments
 (0)