mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-23 16:04:06 +00:00
Merge pull request #831 from xiaoyifang/fix/remove-unused-config
fix: remove unused configuration
This commit is contained in:
commit
1a1f70891d
|
@ -1094,16 +1094,6 @@ Class load()
|
|||
if ( !mainWindowGeometry.isNull() )
|
||||
c.mainWindowGeometry = QByteArray::fromBase64( mainWindowGeometry.toElement().text().toLatin1() );
|
||||
|
||||
QDomNode helpWindowGeometry = root.namedItem( "helpWindowGeometry" );
|
||||
|
||||
if ( !helpWindowGeometry.isNull() )
|
||||
c.helpWindowGeometry = QByteArray::fromBase64( helpWindowGeometry.toElement().text().toLatin1() );
|
||||
|
||||
QDomNode helpSplitterState = root.namedItem( "helpSplitterState" );
|
||||
|
||||
if ( !helpSplitterState.isNull() )
|
||||
c.helpSplitterState = QByteArray::fromBase64( helpSplitterState.toElement().text().toLatin1() );
|
||||
|
||||
QDomNode dictInfoGeometry = root.namedItem( "dictInfoGeometry" );
|
||||
|
||||
if ( !dictInfoGeometry.isNull() )
|
||||
|
@ -2099,14 +2089,6 @@ void save( Class const & c )
|
|||
opt.appendChild( dd.createTextNode( QString::fromLatin1( c.mainWindowGeometry.toBase64() ) ) );
|
||||
root.appendChild( opt );
|
||||
|
||||
opt = dd.createElement( "helpWindowGeometry" );
|
||||
opt.appendChild( dd.createTextNode( QString::fromLatin1( c.helpWindowGeometry.toBase64() ) ) );
|
||||
root.appendChild( opt );
|
||||
|
||||
opt = dd.createElement( "helpSplitterState" );
|
||||
opt.appendChild( dd.createTextNode( QString::fromLatin1( c.helpSplitterState.toBase64() ) ) );
|
||||
root.appendChild( opt );
|
||||
|
||||
opt = dd.createElement( "dictInfoGeometry" );
|
||||
opt.appendChild( dd.createTextNode( QString::fromLatin1( c.dictInfoGeometry.toBase64() ) ) );
|
||||
root.appendChild( opt );
|
||||
|
|
|
@ -695,8 +695,6 @@ struct Class
|
|||
QByteArray dictInfoGeometry; // Geometry of "Dictionary info" window
|
||||
QByteArray inspectorGeometry; // Geometry of WebKit inspector window
|
||||
QByteArray dictionariesDialogGeometry; // Geometry of Dictionaries dialog
|
||||
QByteArray helpWindowGeometry; // Geometry of help window
|
||||
QByteArray helpSplitterState; // Geometry of help splitter
|
||||
|
||||
QString historyExportPath; // Path for export/import history
|
||||
QString resourceSavePath; // Path to save images/audio
|
||||
|
|
Loading…
Reference in a new issue