forked from External/mage
Add mechanism to register image caches and flush them all on GUI size change
This should avoid the issue of having lots of unused entries in caches if the GUI size is changed multiple times.
This commit is contained in:
parent
415c8cce7e
commit
1999dfe5c0
2 changed files with 36 additions and 0 deletions
|
|
@ -116,6 +116,7 @@ import mage.client.table.TablesPane;
|
|||
import mage.client.tournament.TournamentPane;
|
||||
import mage.client.util.EDTExceptionHandler;
|
||||
import mage.client.util.GUISizeHelper;
|
||||
import mage.client.util.ImageCaches;
|
||||
import mage.client.util.SettingsManager;
|
||||
import mage.client.util.SystemUtil;
|
||||
import mage.client.util.audio.MusicPlayer;
|
||||
|
|
@ -1455,6 +1456,7 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
|
|||
}
|
||||
|
||||
public void changeGUISize() {
|
||||
ImageCaches.flush();
|
||||
setGUISize();
|
||||
Plugins.getInstance().changeGUISize();
|
||||
CountryUtil.changeGUISize();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue