Skip to content

Commit

Permalink
[Qt] Restore correct window state upon finishing encoding while minim…
Browse files Browse the repository at this point in the history
…ized to notification area
  • Loading branch information
eumagga0x2a committed Nov 8, 2016
1 parent 84eb189 commit 5587561
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions avidemux/qt4/ADM_userInterfaces/ADM_gui/Q_gui2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ extern bool A_loadDefaultSettings(void);;
extern void ADM_ExitCleanup(void);

static bool uiRunning=false;
static bool uiIsMaximized=false;

#define WIDGET(x) (((MainWindow *)QuiMainWindows)->ui.x)

Expand Down Expand Up @@ -1501,6 +1502,7 @@ bool UI_hasOpenGl(void)
*/
void UI_iconify( void )
{
uiIsMaximized=QuiMainWindows->isMaximized();
QuiMainWindows->hide();

}
Expand All @@ -1509,11 +1511,16 @@ void UI_iconify( void )
*/
void UI_deiconify( void )
{
QuiMainWindows->showNormal();

if(uiIsMaximized)
{
QuiMainWindows->showMaximized();
}else
{
QuiMainWindows->showNormal();
}
}
/**
\fn UI_deiconify
\fn UI_setAudioTrackCount
*/
void UI_setAudioTrackCount( int nb )
{
Expand Down

0 comments on commit 5587561

Please sign in to comment.