Clean up iconifying on copy.
This commit is contained in:
parent
c2c4fb18bf
commit
36a7c7f423
@ -650,14 +650,8 @@ public class UserContentPanel extends JPanel implements MasterPassword.Listener,
|
||||
|
||||
Res.ui( () -> {
|
||||
Window window = SwingUtilities.windowForComponent( UserContentPanel.this );
|
||||
if (window instanceof Frame) {
|
||||
if (window instanceof Frame)
|
||||
((Frame) window).setExtendedState( Frame.ICONIFIED );
|
||||
window.dispatchEvent( new WindowEvent( window, WindowEvent.WINDOW_DEACTIVATED ) );
|
||||
window.dispatchEvent( new WindowEvent( window, WindowEvent.WINDOW_ICONIFIED ) );
|
||||
window.dispatchEvent( new WindowEvent( window, WindowEvent.WINDOW_LOST_FOCUS ) );
|
||||
window.dispatchEvent( new WindowEvent( window, WindowEvent.WINDOW_CLOSED ) );
|
||||
}
|
||||
// window.dispatchEvent( new WindowEvent( window, WindowEvent.WINDOW_ICONIFIED ) );
|
||||
} );
|
||||
} );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user