Skip to content

Commit

Permalink
fix: there is a redundant messagebox shown when logging into a reposi…
Browse files Browse the repository at this point in the history
…tory
  • Loading branch information
iadonkey committed Dec 7, 2024
1 parent 611dbad commit 82277cc
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions TwinpackVsixShared/Dialogs/PackagingServerDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,6 @@ private async void LoginButton_Click(object sender, RoutedEventArgs e)
var auth = new Protocol.Authentication(server);
await auth.LoginAsync(false);

if (server.LoggedIn)
MessageBox.Show("Login successful!", "Package server", MessageBoxButton.OK, MessageBoxImage.Information);

int index = PackagingServersView.ItemContainerGenerator.IndexFromContainer(item);
PackagingServers.ElementAt(index).LoggedIn = server.LoggedIn;
PackagingServers.ElementAt(index).Connected = server.Connected;
Expand Down

0 comments on commit 82277cc

Please sign in to comment.