Skip to content

Commit

Permalink
Add copy to clipboard for public ip address and fix hub console
Browse files Browse the repository at this point in the history
  • Loading branch information
K4CZP3R committed Jan 19, 2021
1 parent e695f5b commit aa1ec07
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions P2PLauncher/View/MainLauncherWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<!-- Public address-->
<Label Content="Public address to use:" HorizontalAlignment="Left" Margin="0,77,0,0" VerticalAlignment="Top"/>
<Label x:Name="LabelPublicAddress" Content="0.0.0.0" HorizontalAlignment="Left" Margin="125,77,0,0" VerticalAlignment="Top" Width="85"/>
<Button x:Name="ButtonCopyPublicAddress" Click="OnCopyPublicAddressClick" Content="Copy" HorizontalAlignment="Left" Margin="284,80,0,0" VerticalAlignment="Top" Width="75"/>

<!-- FreeLan address-->
<Label Content="Your FreeLAN address to use:" HorizontalAlignment="Left" Margin="0,103,0,0" VerticalAlignment="Top"/>
Expand Down
5 changes: 5 additions & 0 deletions P2PLauncher/View/MainLauncherWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,10 @@ private void OnOpenServicesSettingsButton(object sender, RoutedEventArgs e)
window.ShowDialog();
UpdateWindow();
}
private void OnCopyPublicAddressClick(object sender, RoutedEventArgs e)
{
Clipboard.SetText(LabelPublicAddress.Content.ToString());
}

#endregion

Expand Down Expand Up @@ -216,6 +220,7 @@ private void OnHubStartClick(object sender, RoutedEventArgs e)
freeLanService.SetMode(FreeLanMode.CLIENT_HUB);
freeLanService.SetPassphrase(TextBoxHubPassword.Text);
freeLanService.SetHostIp(TextBoxHubHost.Text);
freeLanService.SetShowShell(CheckBoxDebug.IsChecked.Value);

OnCommonStart();

Expand Down

0 comments on commit aa1ec07

Please # to comment.