mirror of https://github.com/zlatinb/muwire
try 3 to use background priorities on windows, GitHub issue #126
parent
4fc6772dc3
commit
f558d766f8
|
@ -819,6 +819,8 @@ class MainFrameView {
|
|||
public void windowClosing(WindowEvent e) {
|
||||
chatNotificator.mainWindowDeactivated()
|
||||
if (application.getContext().get("tray-icon") != null) {
|
||||
if (SystemVersion.isWindows())
|
||||
PrioritySetter.enterBackgroundMode()
|
||||
if (settings.closeWarning) {
|
||||
runInsideUIAsync {
|
||||
Map<String, Object> args2 = new HashMap<>()
|
||||
|
@ -842,11 +844,6 @@ class MainFrameView {
|
|||
chatNotificator.mainWindowActivated()
|
||||
}
|
||||
|
||||
public void windowClosed(WindowEvent e) {
|
||||
if (SystemVersion.isWindows())
|
||||
PrioritySetter.enterBackgroundMode()
|
||||
}
|
||||
|
||||
public void windowIconified(WindowEvent e) {
|
||||
if (SystemVersion.isWindows())
|
||||
PrioritySetter.enterBackgroundMode()
|
||||
|
|
Loading…
Reference in New Issue