refactor: updated .Net version, removed unused vars, cleanup of code

This commit is contained in:
nikita_ve
2025-01-19 19:35:29 +03:00
parent e8670a252c
commit cc66ee9d0e
4 changed files with 14 additions and 20 deletions

View File

@@ -10,7 +10,7 @@ namespace FractalTreeGtk
internal class CairoWindow : Window
{
private int FractalLevels { get; set; } = 2;
readonly DrawingArea _drawing = new DrawingArea();
readonly DrawingArea _drawing = new();
Fractal _fractal = null!;
public CairoWindow(string title) : base(title)
@@ -44,9 +44,9 @@ namespace FractalTreeGtk
FractalLevels--;
GenerateFractal();
}
break;
case Key.r: //Regenerate fractal
case Key.R:
GenerateFractal();
break;
}