mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-28 21:52:39 -04:00
[release/3.6] 修复 backgroundType 为 null 时启动器崩溃的问题 (#4438)
https://github.com/HMCL-dev/HMCL/pull/4437
This commit is contained in:
parent
1654c652e0
commit
6dd7d53c20
@ -198,6 +198,8 @@ public class DecoratorController {
|
|||||||
|
|
||||||
private Background getBackground() {
|
private Background getBackground() {
|
||||||
EnumBackgroundImage imageType = config().getBackgroundImageType();
|
EnumBackgroundImage imageType = config().getBackgroundImageType();
|
||||||
|
if (imageType == null)
|
||||||
|
imageType = EnumBackgroundImage.DEFAULT;
|
||||||
|
|
||||||
Image image = null;
|
Image image = null;
|
||||||
switch (imageType) {
|
switch (imageType) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user