Skip to content

Commit

Permalink
refactor: Fix linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoliz committed Jul 19, 2024
1 parent 7e823d4 commit 296fa36
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions LogoSlideMaker.Lib/Export/Renderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ public void Render(Presentation pres, SlideLayout layout, string? dataVersion, I
}
}

private void SetDescription(SlideLayout layout, ISlideShapes target)
private static void SetDescription(SlideLayout layout, ISlideShapes target)
{
// Fill in description field
var num_description_lines = layout.Variant.Description.Count();
var num_description_lines = layout.Variant.Description.Count;
if (num_description_lines > 0)
{
var description_box = target.TryGetByName<IShape>("Description");
Expand Down
8 changes: 4 additions & 4 deletions LogoSlideMaker.WinUi/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using DocumentFormat.OpenXml.Bibliography;
using LogoSlideMaker.Primitives;
using LogoSlideMaker.WinUi.Services;
using LogoSlideMaker.WinUi.ViewModels;
using Microsoft.AspNetCore.Routing.Template;
using Microsoft.Extensions.Logging;
using Microsoft.Graphics.Canvas;
using Microsoft.Graphics.Canvas.Brushes;
Expand All @@ -14,6 +12,7 @@
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
Expand Down Expand Up @@ -287,12 +286,13 @@ private async void ExportSlides(object _, RoutedEventArgs __)

private async void ShowAboutDialog(object sender, RoutedEventArgs e)
{
var result = await aboutDialog.ShowAsync();
await aboutDialog.ShowAsync();

logOk();
}

private void OpenLogsFolder(ContentDialog sender, ContentDialogButtonClickEventArgs args)
[SuppressMessage("Performance", "CA1822:Mark members as static", Justification = "UI system requires calling with instance")]
private void OpenLogsFolder(ContentDialog _, ContentDialogButtonClickEventArgs __)
{
Process.Start("explorer.exe", MainViewModel.LogsFolder);
}
Expand Down

0 comments on commit 296fa36

Please sign in to comment.