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