mirror of
https://github.com/YACReader/yacreader
synced 2025-07-21 06:24:39 -04:00
corregido bug que evitaba que la restauraci?n desde pantalla completa a maximizada no se hicese correctamente
This commit is contained in:
@ -558,6 +558,8 @@ void MainWindowViewer::toggleFullScreen()
|
||||
|
||||
void MainWindowViewer::toFullScreen()
|
||||
{
|
||||
fromMaximized = this->isMaximized();
|
||||
|
||||
hideToolBars();
|
||||
viewer->hide();
|
||||
viewer->fullscreen = true;//TODO, change by the right use of windowState();
|
||||
@ -573,7 +575,11 @@ void MainWindowViewer::toNormal()
|
||||
viewer->hide();
|
||||
viewer->fullscreen = false;//TODO, change by the right use of windowState();
|
||||
//viewer->hideMagnifyingGlass();
|
||||
showNormal();
|
||||
if(fromMaximized)
|
||||
showMaximized();
|
||||
else
|
||||
showNormal();
|
||||
|
||||
if(Configuration::getConfiguration().getShowToolbars())
|
||||
showToolBars();
|
||||
viewer->show();
|
||||
|
Reference in New Issue
Block a user