Skip to content

Commit

Permalink
Remove re-enabling of freelan service and untick relay checkbox for t…
Browse files Browse the repository at this point in the history
…he client
  • Loading branch information
K4CZP3R committed Jan 16, 2021
1 parent fa27d72 commit 8d49408
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 deletions P2PLauncher/Services/FreeLanService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ public class FreeLanService
private string relayMode;
private bool showShell;
private StreamWriter debugWrite;
private bool turnedOffFreeLanService;


public void SetPassphrase(string content)
{
passphrase = content;
Expand Down Expand Up @@ -98,10 +97,7 @@ public void StopFreeLan()
if(!process.HasExited)
process.Kill();
debugWrite.Close();
if(turnedOffFreeLanService)
{
SetFreeLanServiceStatus(true);
}

}
public bool StartFreeLan()
{
Expand All @@ -113,7 +109,6 @@ public bool StartFreeLan()

if(GetFreeLanServiceStatus())
{
turnedOffFreeLanService = true;
SetFreeLanServiceStatus(false);
}

Expand Down
2 changes: 1 addition & 1 deletion P2PLauncher/View/MainLauncherWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
<Label Content="Id:" HorizontalAlignment="Left" Margin="14,62,0,0" VerticalAlignment="Top" Grid.ColumnSpan="2"/>
<Label Content="Password:" HorizontalAlignment="Left" Margin="14,116,0,0" VerticalAlignment="Top" Grid.ColumnSpan="2"/>
<TextBox x:Name="TextBoxPassword" HorizontalAlignment="Left" Height="23" Margin="60,119,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="120" Grid.Column="1"/>
<CheckBox x:Name="CheckBoxClientRelay" IsChecked="True" Content="Relay mode" HorizontalAlignment="Left" Margin="14,170,0,0" VerticalAlignment="Top" Grid.ColumnSpan="2"/>
<CheckBox x:Name="CheckBoxClientRelay" IsChecked="False" Content="Relay mode" HorizontalAlignment="Left" Margin="14,170,0,0" VerticalAlignment="Top" Grid.ColumnSpan="2"/>
<Label Content="Relay mode (advanced)." HorizontalAlignment="Left" Margin="14,185,0,0" VerticalAlignment="Top" FontSize="10" FontStyle="Italic" Grid.ColumnSpan="2"/>

</Grid>
Expand Down

0 comments on commit 8d49408

Please # to comment.