add hour window
This commit is contained in:
@@ -368,10 +368,8 @@ namespace BlueMine
|
||||
|
||||
private async void hoursButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
await new Wpf.Ui.Controls.MessageBox
|
||||
{
|
||||
Title = "Under construction"
|
||||
}.ShowDialogAsync();
|
||||
var hoursWindow = new HoursWindow(_manager, _config);
|
||||
hoursWindow.Show();
|
||||
}
|
||||
|
||||
private void updateButton_Click(object sender, RoutedEventArgs e)
|
||||
@@ -487,7 +485,7 @@ namespace BlueMine
|
||||
foreach (var issueId in Constants.StaticTickets)
|
||||
_issues.Add(await _manager.GetSimpleIssueAsync(issueId));
|
||||
|
||||
_issues.AddRange(await _manager.GetCurrentUserIssuesAsync(progress: UpdateProgress("Jegyek letöltése:")));
|
||||
_issues.AddRange(await _manager.GetCurrentUserOpenIssuesAsync(progress: UpdateProgress("Jegyek letöltése:")));
|
||||
progressBar.Value = 0;
|
||||
progressRing.Visibility = Visibility.Hidden;
|
||||
FilterIssues();
|
||||
@@ -528,7 +526,7 @@ namespace BlueMine
|
||||
statusTextBlock.Text = $"Kapcsolódás Redminehoz...";
|
||||
|
||||
int maxRetries = 3;
|
||||
int timeoutSeconds = 1; // Force kill after 5s
|
||||
int timeoutSeconds = 3; // Force kill after 5s
|
||||
|
||||
for (int i = 0; i < maxRetries; i++)
|
||||
{
|
||||
@@ -555,7 +553,7 @@ namespace BlueMine
|
||||
statusTextBlock.Text = $"Kapcsolódási hiba. Újrapróbálkozás: {i + 1}/{maxRetries}";
|
||||
|
||||
// Wait 1 second before retrying
|
||||
await Task.Delay(1000);
|
||||
await Task.Delay(5000);
|
||||
}
|
||||
|
||||
// All attempts failed
|
||||
|
||||
Reference in New Issue
Block a user