mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-30 17:24:08 +00:00
Full-text search: Hide option for Zim format in preferences if GoldenDict compiled without it support
This commit is contained in:
parent
64b299513c
commit
361a9ceb97
|
@ -238,7 +238,9 @@ Preferences::Preferences( QWidget * parent, Config::Preferences const & p ):
|
|||
ui.allowStardict->setChecked( !p.fts.disabledTypes.contains( "STARDICT", Qt::CaseInsensitive ) );
|
||||
ui.allowXDXF->setChecked( !p.fts.disabledTypes.contains( "XDXF", Qt::CaseInsensitive ) );
|
||||
ui.allowZim->setChecked( !p.fts.disabledTypes.contains( "ZIM", Qt::CaseInsensitive ) );
|
||||
|
||||
#ifndef MAKE_ZIM_SUPPORT
|
||||
ui.allowZim->hide();
|
||||
#endif
|
||||
ui.maxDictionarySize->setValue( p.fts.maxDictionarySize );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue