Skip to content
This repository has been archived by the owner on Apr 8, 2021. It is now read-only.

Commit

Permalink
Simplified Selecting of Server File
Browse files Browse the repository at this point in the history
Made server file auto fill when first creating a new server tab. Also made default location for file picker match the server path from main tab.
  • Loading branch information
alec-hs committed Jun 13, 2018
1 parent e298b8a commit 53f43f0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Flax's-Arma-Server-Tool/NewServerTab.vb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ Public Class NewServerTab
difficultyCombo.SelectedItem = "Regular"
End If

If serverFileBox.Text = Nothing Then
serverFileBox.Text = My.Settings.serverDir & "\arma3server.exe"
End If

UpdateModsList()
UpdateMissionsList()

Expand Down Expand Up @@ -173,6 +177,7 @@ Public Class NewServerTab
End Sub

Public Sub ChooseServerFile()
serverFileDialog.InitialDirectory = My.Settings.serverDir
If serverFileDialog.ShowDialog() = DialogResult.OK Then
serverFileBox.Text = serverFileDialog.FileName
End If
Expand Down

0 comments on commit 53f43f0

Please sign in to comment.