Skip to content
This repository was archived by the owner on Nov 26, 2019. It is now read-only.

Commit f473621

Browse files
committed
Quick fix that kept new installations from not working
1 parent bc5eb70 commit f473621

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

client/src/main/java/com/msc/serverbrowser/Client.java

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ public static Client getInstance()
9292
public void start(final Stage primaryStage)
9393
{
9494
instance = this;
95-
initClient();
9695
loadUI(primaryStage);
9796

9897
// Only update if not in development mode
@@ -221,14 +220,10 @@ private void loadUI(final Stage primaryStage)
221220
* Creates files and folders that are necessary for the application to run properly and migrates
222221
* old xml data.
223222
*/
224-
private static void initClient()
223+
private static void createFolderStructure()
225224
{
226225
final File sampexFolder = new File(PathConstants.SAMPEX_PATH);
227-
228-
if (!sampexFolder.exists())
229-
{
230-
sampexFolder.mkdir();
231-
}
226+
sampexFolder.mkdirs();
232227

233228
try
234229
{
@@ -451,6 +446,8 @@ public static void main(final String[] args) throws FileNotFoundException, IOExc
451446
// System.setProperty("prism.lcdtext", "false");
452447
// System.setProperty("prism.text", "t2k");
453448

449+
createFolderStructure();
450+
454451
final Locale locale = new Locale(ClientPropertiesController.getPropertyAsString(Property.LANGUAGE));
455452
lang = ResourceBundle.getBundle("com.msc.serverbrowser.localization.Lang", locale);
456453

client/src/main/java/com/msc/serverbrowser/util/UpdateUtility.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public final class UpdateUtility
2424
/**
2525
* The current version of this application
2626
*/
27-
public static final String VERSION = "1.4.0";
27+
public static final String VERSION = "1.4.1";
2828

2929
private UpdateUtility()
3030
{

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
projectVersion = 1.4.0
1+
projectVersion = 1.4.1
22
projectGroup = me.marcelschr.samp
33
projectVendor = Bios-Marcel
44
gradleWrapperVersion = 4.1

0 commit comments

Comments
 (0)