Skip to content

Commit

Permalink
opt: backup group info
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyifang committed Oct 31, 2024
1 parent b2aeb0c commit 49f0b87
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ui/editdictionaries.cc
Original file line number Diff line number Diff line change
Expand Up @@ -237,19 +237,19 @@ void EditDictionaries::acceptChangedSources( bool rebuildGroups )
const bool noGroupEdits = ( origCfg.groups == savedGroups );

if ( !noGroupEdits ) {
Instances::updateNames( savedGroups, dictionaries );
Instances::updateNames( origCfg.groups, dictionaries );
}

const bool noOrderEdits = ( origCfg.dictionaryOrder == savedOrder );

if ( !noOrderEdits ) {
Instances::updateNames( savedOrder, dictionaries );
Instances::updateNames( origCfg.dictionaryOrder, dictionaries );
}

const bool noInactiveEdits = ( origCfg.inactiveDictionaries == savedInactive );

if ( !noInactiveEdits ) {
Instances::updateNames( savedInactive, dictionaries );
Instances::updateNames( origCfg.inactiveDictionaries, dictionaries );
}
}
ui.tabs->setUpdatesEnabled( true );
Expand Down

0 comments on commit 49f0b87

Please sign in to comment.