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) {
|
public void windowClosing(WindowEvent e) {
|
||||||
chatNotificator.mainWindowDeactivated()
|
chatNotificator.mainWindowDeactivated()
|
||||||
if (application.getContext().get("tray-icon") != null) {
|
if (application.getContext().get("tray-icon") != null) {
|
||||||
|
if (SystemVersion.isWindows())
|
||||||
|
PrioritySetter.enterBackgroundMode()
|
||||||
if (settings.closeWarning) {
|
if (settings.closeWarning) {
|
||||||
runInsideUIAsync {
|
runInsideUIAsync {
|
||||||
Map<String, Object> args2 = new HashMap<>()
|
Map<String, Object> args2 = new HashMap<>()
|
||||||
|
@ -842,11 +844,6 @@ class MainFrameView {
|
||||||
chatNotificator.mainWindowActivated()
|
chatNotificator.mainWindowActivated()
|
||||||
}
|
}
|
||||||
|
|
||||||
public void windowClosed(WindowEvent e) {
|
|
||||||
if (SystemVersion.isWindows())
|
|
||||||
PrioritySetter.enterBackgroundMode()
|
|
||||||
}
|
|
||||||
|
|
||||||
public void windowIconified(WindowEvent e) {
|
public void windowIconified(WindowEvent e) {
|
||||||
if (SystemVersion.isWindows())
|
if (SystemVersion.isWindows())
|
||||||
PrioritySetter.enterBackgroundMode()
|
PrioritySetter.enterBackgroundMode()
|
||||||
|
|
Loading…
Reference in New Issue