public async void QuickFix() { Locker.StartOperation(true); // ADB is not available during a quick fix, as we redownload platform-tools try { await _uiService.QuickFix(); _logger.Information("Done!"); } catch (Exception ex) { _logger.Error($"Failed to clear cache: {ex}"); DialogBuilder builder = new() { Title = "Failed to clear cache", Text = "Running the quick fix failed due to an unhandled error", HideCancelButton = true }; builder.WithException(ex); await builder.OpenDialogue(_mainWindow); } finally { Locker.FinishOperation(); } }
public async void QuickFix() { Locker.StartOperation(true); // ADB is not available during a quick fix, as we redownload platform-tools try { await _uiService.QuickFix(); _logger.Information("Done!"); } catch (Exception ex) { _logger.Error($"Failed to clear cache: {ex}"); } finally { Locker.FinishOperation(); } }