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 3db2e01 commit e19f7ee
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/config.hh
Original file line number Diff line number Diff line change
Expand Up @@ -827,6 +827,12 @@ enum class ToolbarsIconSize : std::uint8_t {
Large = 2,
};

struct Group{
Group dictionaryOrder;
Group inactiveDictionaries;
Groups groups;
}

struct Class
{
Paths paths;
Expand Down
1 change: 0 additions & 1 deletion src/ui/editdictionaries.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ EditDictionaries::EditDictionaries( QWidget * parent,
dictionaries( dictionaries_ ),
groupInstances( groupInstances_ ),
dictNetMgr( dictNetMgr_ ),
origCfg( cfg ),
sources( this, cfg ),
orderAndProps(
std::make_shared< OrderAndProps >( this, cfg.dictionaryOrder, cfg.inactiveDictionaries, dictionaries ) ),
Expand Down
2 changes: 1 addition & 1 deletion src/ui/editdictionaries.hh
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ private:
QNetworkAccessManager & dictNetMgr;

// Backed up to decide later if something was changed or not
Config::Class origCfg;
Config::Group origCfg;

Ui::EditDictionaries ui;
Sources sources;
Expand Down

0 comments on commit e19f7ee

Please sign in to comment.