mirror of
https://github.com/aaru-dps/RedBookPlayer.git
synced 2025-12-16 19:24:41 +00:00
Move image loading to view model
This commit is contained in:
@@ -111,7 +111,7 @@ namespace RedBookPlayer.GUI
|
||||
IEnumerable<string> fileNames = e.Data.GetFileNames();
|
||||
foreach(string filename in fileNames)
|
||||
{
|
||||
bool loaded = await playerView.LoadImage(filename);
|
||||
bool loaded = await playerView?.PlayerViewModel?.LoadImage(filename);
|
||||
if(loaded)
|
||||
break;
|
||||
}
|
||||
@@ -132,7 +132,7 @@ namespace RedBookPlayer.GUI
|
||||
// Load image
|
||||
else if (e.Key == App.Settings.LoadImageKey)
|
||||
{
|
||||
playerView?.LoadButton_Click(this, null);
|
||||
playerView?.PlayerViewModel?.ExecuteLoad();
|
||||
}
|
||||
|
||||
// Toggle playback
|
||||
|
||||
Reference in New Issue
Block a user