diff --git a/QuickLook.Plugin/QuickLook.Plugin.VideoViewer/ViewerPanel.xaml.cs b/QuickLook.Plugin/QuickLook.Plugin.VideoViewer/ViewerPanel.xaml.cs index 864d82c..c600b95 100644 --- a/QuickLook.Plugin/QuickLook.Plugin.VideoViewer/ViewerPanel.xaml.cs +++ b/QuickLook.Plugin/QuickLook.Plugin.VideoViewer/ViewerPanel.xaml.cs @@ -168,6 +168,8 @@ namespace QuickLook.Plugin.VideoViewer public void Dispose() { + _context.SetSetting("Volume", mediaElement.Volume); + try { Task.Run(() => @@ -317,7 +319,7 @@ namespace QuickLook.Plugin.VideoViewer public void LoadAndPlay(string path) { mediaElement.LoadMediaWithOptions(path, ":avcodec-hw=dxva2"); - mediaElement.Volume = 50; + mediaElement.Volume = _context.GetSetting("Volume", 50); mediaElement.Play(); }