mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
*! When toggling main window and it's not visible, activate and raise it.
This commit is contained in:
parent
484c3e356b
commit
1c391da840
|
@ -961,7 +961,11 @@ void MainWindow::showTranslationFor( QString const & inWord )
|
|||
void MainWindow::toggleMainWindow( bool onlyShow )
|
||||
{
|
||||
if ( !isVisible() )
|
||||
{
|
||||
show();
|
||||
activateWindow();
|
||||
raise();
|
||||
}
|
||||
else
|
||||
if ( isMinimized() )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue