Only show welcome page to Chinese

This commit is contained in:
huangyuhui 2018-06-23 22:25:39 +08:00
parent 76caf84e39
commit 8a6653a926
2 changed files with 4 additions and 2 deletions

View File

@ -53,6 +53,7 @@ import javafx.stage.StageStyle;
import javafx.util.Duration; import javafx.util.Duration;
import org.jackhuang.hmcl.Launcher; import org.jackhuang.hmcl.Launcher;
import org.jackhuang.hmcl.setting.EnumBackgroundImage; import org.jackhuang.hmcl.setting.EnumBackgroundImage;
import org.jackhuang.hmcl.setting.Locales;
import org.jackhuang.hmcl.setting.Settings; import org.jackhuang.hmcl.setting.Settings;
import org.jackhuang.hmcl.setting.Theme; import org.jackhuang.hmcl.setting.Theme;
import org.jackhuang.hmcl.ui.animation.AnimationProducer; import org.jackhuang.hmcl.ui.animation.AnimationProducer;
@ -67,6 +68,7 @@ import org.jackhuang.hmcl.util.Lang;
import org.jackhuang.hmcl.util.StringUtils; import org.jackhuang.hmcl.util.StringUtils;
import java.io.File; import java.io.File;
import java.util.Locale;
import java.util.Queue; import java.util.Queue;
import java.util.Random; import java.util.Random;
import java.util.concurrent.ConcurrentLinkedQueue; import java.util.concurrent.ConcurrentLinkedQueue;
@ -190,7 +192,7 @@ public final class Decorator extends StackPane implements TaskExecutorDialogWiza
); );
nowAnimation.play(); nowAnimation.play();
}); });
if (!Settings.INSTANCE.isFirstLaunch()) if (!Settings.INSTANCE.isFirstLaunch() || Settings.INSTANCE.getLocale().getLocale() != Locale.CHINA)
drawerWrapper.getChildren().remove(welcomeView); drawerWrapper.getChildren().remove(welcomeView);
if (!min) buttonsContainer.getChildren().remove(btnMin); if (!min) buttonsContainer.getChildren().remove(btnMin);

View File

@ -47,7 +47,7 @@
</center> </center>
</BorderPane> </BorderPane>
<ImageView fx:id="welcomeView"> <ImageView fx:id="welcomeView">
<Image url="/assets/img/HMCL.png" /> <Image url="/assets/img/welcome.png" />
</ImageView> </ImageView>
</StackPane> </StackPane>
</center> </center>