mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
parent
fc7a67d788
commit
0592d2060e
|
@ -712,24 +712,17 @@ MainWindow::MainWindow( Config::Class & cfg_ ):
|
|||
// Create tab list menu
|
||||
createTabList();
|
||||
|
||||
if ( cfg.mainWindowGeometry.size() )
|
||||
restoreGeometry( cfg.mainWindowGeometry );
|
||||
if ( cfg.mainWindowState.size() && !cfg.resetState )
|
||||
restoreState( cfg.mainWindowState );
|
||||
if ( cfg.mainWindowGeometry.size() )
|
||||
restoreGeometry( cfg.mainWindowGeometry );
|
||||
|
||||
// Show the initial welcome text
|
||||
|
||||
{
|
||||
ArticleView * view = getCurrentArticleView();
|
||||
|
||||
history.enableAdd( false );
|
||||
|
||||
blockUpdateWindowTitle = true;
|
||||
|
||||
view->showDefinition( tr( "Welcome!" ), Instances::Group::HelpGroupId );
|
||||
|
||||
history.enableAdd( cfg.preferences.storeHistory );
|
||||
}
|
||||
|
||||
translateLine->setFocus();
|
||||
|
||||
|
|
Loading…
Reference in a new issue