Skip to content

Commit

Permalink
Bugfix: ordering by column in the flag editor
Browse files Browse the repository at this point in the history
  • Loading branch information
pizzaboxer committed Aug 31, 2024
1 parent 7440f18 commit 3d4ba04
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion Bloxstrap/Integrations/ActivityWatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ public async void Start()
if (logFileInfo.CreationTime.AddSeconds(15) > DateTime.Now)
break;

// TODO: report failure after 10 seconds of no log file
App.Logger.WriteLine(LOG_IDENT, $"Could not find recent enough log file, waiting... (newest is {logFileInfo.Name})");
await Task.Delay(1000);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,12 +307,10 @@ private bool ValidateFilter(string name, string value)

private void DataGrid_CellEditEnding(object sender, DataGridCellEditEndingEventArgs e)
{
int index = e.Row.GetIndex();
FastFlag entry = _fastFlagList[index];

var textbox = e.EditingElement as TextBox;
if (e.Row.DataContext is not FastFlag entry)
return;

if (textbox is null)
if (e.EditingElement is not TextBox textbox)
return;

switch (e.Column.Header)
Expand Down

0 comments on commit 3d4ba04

Please sign in to comment.