Save highlights before importing if changes exist to avoid losing
any unsaved rules when loading the highlight rule list from the
client.
Test case:
1. Have at least 1 local highlight rule
2. Add remote highlight rule, don't save
3. Import local highlights
4. Unsaved highlight rule gets deleted
+ if (hasChanged()) {
+ // Save existing changes first to avoid overwriting them
+ save();
+ }
+
auto clonedManager = HighlightRuleManager();
clonedManager.fromVariantMap(Client::highlightRuleManager()->toVariantMap());
auto clonedManager = HighlightRuleManager();
clonedManager.fromVariantMap(Client::highlightRuleManager()->toVariantMap());