diff --git a/.idea/.idea.Aaru/.idea/contentModel.xml b/.idea/.idea.Aaru/.idea/contentModel.xml index 1bc147c12..9a7a69f85 100644 --- a/.idea/.idea.Aaru/.idea/contentModel.xml +++ b/.idea/.idea.Aaru/.idea/contentModel.xml @@ -1,28 +1,27 @@ - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + @@ -71,13 +70,6 @@ - - - - - - - @@ -88,12 +80,18 @@ + + + + + + @@ -102,14 +100,6 @@ - - - - - - - - @@ -117,11 +107,19 @@ + + + + + + + + @@ -180,6 +178,13 @@ + + + + + + + @@ -200,19 +205,10 @@ - - - - - - - - - @@ -221,6 +217,7 @@ + @@ -238,6 +235,7 @@ + @@ -258,8 +256,8 @@ - + @@ -269,11 +267,11 @@ - + - + @@ -287,17 +285,17 @@ - - + + - + @@ -317,12 +315,19 @@ - + + + + + + + + @@ -339,68 +344,61 @@ - - - - - - - - + - - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + + @@ -425,7 +423,6 @@ - @@ -437,11 +434,12 @@ + - + @@ -463,9 +461,9 @@ + - @@ -495,6 +493,13 @@ + + + + + + + @@ -558,11 +563,11 @@ + - @@ -582,17 +587,10 @@ - - - - - - - - + @@ -649,6 +647,13 @@ + + + + + + + @@ -661,28 +666,17 @@ - + - - - - - - - - + - - - - @@ -690,13 +684,16 @@ + + + - - + + @@ -732,11 +729,13 @@ + - + + @@ -744,11 +743,14 @@ - + + + + @@ -788,8 +790,8 @@ - + @@ -798,8 +800,8 @@ - + @@ -808,8 +810,8 @@ - + @@ -836,8 +838,15 @@ - + + + + + + + + @@ -855,11 +864,11 @@ - + @@ -882,34 +891,17 @@ - - - - - - - - - - - - + - - - - - - @@ -917,12 +909,18 @@ + + + + + + @@ -1016,6 +1014,12 @@ + + + + + + @@ -1040,12 +1044,6 @@ - - - - - - @@ -1128,6 +1126,8 @@ + + @@ -1143,6 +1143,18 @@ + + + + + + + + + + + + @@ -1155,18 +1167,6 @@ - - - - - - - - - - - - @@ -1175,14 +1175,14 @@ - - + + @@ -1205,12 +1205,10 @@ - - - + @@ -1221,15 +1219,13 @@ - - - + @@ -1252,6 +1248,16 @@ + + + + + + + + + + @@ -1309,6 +1315,7 @@ + @@ -1345,6 +1352,8 @@ + + @@ -1356,17 +1365,6 @@ - - - - - - - - - - - @@ -1375,6 +1373,7 @@ + @@ -1382,10 +1381,6 @@ - - - - @@ -1393,6 +1388,9 @@ + + + @@ -1475,16 +1473,7 @@ - - - - - - - - - - + @@ -1506,6 +1495,16 @@ + + + + + + + + + + @@ -1539,16 +1538,6 @@ - - - - - - - - - - @@ -1586,6 +1575,16 @@ + + + + + + + + + + @@ -1676,8 +1675,8 @@ - + @@ -1711,16 +1710,6 @@ - - - - - - - - - - @@ -1732,6 +1721,23 @@ + + + + + + + + + + + + + + + + + @@ -1914,16 +1920,6 @@ - - - - - - - - - - @@ -1934,6 +1930,16 @@ + + + + + + + + + + @@ -1952,14 +1958,6 @@ - - - - - - - - @@ -1967,6 +1965,7 @@ + @@ -1974,6 +1973,13 @@ + + + + + + + @@ -1983,20 +1989,11 @@ - - - - - - - - - + - @@ -2005,19 +2002,13 @@ + - - - - - - - - - - + + + @@ -2051,8 +2042,8 @@ - + @@ -2060,7 +2051,7 @@ - + @@ -2083,7 +2074,14 @@ + + + + + + + \ No newline at end of file diff --git a/Aaru.Gui/Forms/frmMediaScan.xeto b/Aaru.Gui/Forms/frmMediaScan.xeto deleted file mode 100644 index e9367bd06..000000000 --- a/Aaru.Gui/Forms/frmMediaScan.xeto +++ /dev/null @@ -1,94 +0,0 @@ - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + \ No newline at end of file diff --git a/Aaru.Gui/Views/MediaScanWindow.xaml.cs b/Aaru.Gui/Views/MediaScanWindow.xaml.cs new file mode 100644 index 000000000..c321b14c9 --- /dev/null +++ b/Aaru.Gui/Views/MediaScanWindow.xaml.cs @@ -0,0 +1,27 @@ +using System.ComponentModel; +using Aaru.Gui.ViewModels; +using Avalonia; +using Avalonia.Controls; +using Avalonia.Markup.Xaml; + +namespace Aaru.Gui.Views +{ + public class MediaScanWindow : Window + { + public MediaScanWindow() + { + InitializeComponent(); + #if DEBUG + this.AttachDevTools(); + #endif + } + + void InitializeComponent() => AvaloniaXamlLoader.Load(this); + + protected override void OnClosing(CancelEventArgs e) + { + (DataContext as MediaScanViewModel)?.ExecuteStopCommand(); + base.OnClosing(e); + } + } +} \ No newline at end of file