Permalink
Browse files

Patch for "/minimized" bug (issue 83)

  • Loading branch information...
1 parent c526fb7 commit a8338781a7f8adca90390aff761080ddc06917f1 @sebdeckers sebdeckers committed Jun 27, 2010
Showing with 5 additions and 7 deletions.
  1. +5 −7 Client/src/main/LoadProfile.js
@@ -54,15 +54,13 @@ function LoadProfile ( Address )
if ( parseInt( cfg( 'lastmode' ), 10 ) === 6 )
cfg( 'lastmode' ) = 0;
- /* Restore the user's preferred window dimensions and location
- */
- MenuBarUpdate();
- if ( external.wnd.isMinimized && external.CmdLine.substr( external.CmdLine.length - 10 ) !== '/minimized' )
- external.wnd.restore();
-
/* Display the window
*/
+ MenuBarUpdate();
external.wnd.setTitle( Address.ShortAddress() + ' - ' + external.globals( 'softwarename' ) );
- external.wnd.hide( false );
+ if ( external.wnd.isMinimized )
+ external.wnd.restore();
+ if ( external.CmdLine.substr( external.CmdLine.length - 10 ) !== '/minimized' )
+ external.wnd.hide( false );
external.wnd.focus();
}

0 comments on commit a833878

Please sign in to comment.