mirror of
https://github.com/developersu/ns-usbloader.git
synced 2025-05-15 15:44:55 -04:00
Fix issue where version was not showing in CLI mode; clear locale_en_US since it's just placeholder
This commit is contained in:
parent
a60d929dcd
commit
4ccf833aa5
3 changed files with 3 additions and 83 deletions
|
@ -42,7 +42,6 @@ public class NSLMain extends Application {
|
|||
|
||||
Locale userLocale = AppPreferences.getInstance().getLocale();
|
||||
ResourceBundle rb = ResourceBundle.getBundle("locale", userLocale);
|
||||
NSLMain.appVersion = ResourceBundle.getBundle("app").getString("_version");
|
||||
|
||||
loader.setResources(rb);
|
||||
Parent root = loader.load();
|
||||
|
@ -84,6 +83,7 @@ public class NSLMain extends Application {
|
|||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
NSLMain.appVersion = ResourceBundle.getBundle("app").getString("_version");
|
||||
if (args.length == 0) {
|
||||
launch(args);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue