diff --git a/QuickLook.Common b/QuickLook.Common index 7b4e2fd..657a9d2 160000 --- a/QuickLook.Common +++ b/QuickLook.Common @@ -1 +1 @@ -Subproject commit 7b4e2fd3a01370bf2e98715b4e3ced3d2671f449 +Subproject commit 657a9d2a6edb36044f6775ce00aa27bdbc784396 diff --git a/QuickLook.Plugin/QuickLook.Plugin.ImageViewer/ImagePanel.xaml.cs b/QuickLook.Plugin/QuickLook.Plugin.ImageViewer/ImagePanel.xaml.cs index 9ea7c6a..8b42755 100644 --- a/QuickLook.Plugin/QuickLook.Plugin.ImageViewer/ImagePanel.xaml.cs +++ b/QuickLook.Plugin/QuickLook.Plugin.ImageViewer/ImagePanel.xaml.cs @@ -278,7 +278,7 @@ namespace QuickLook.Plugin.ImageViewer { Theme = Theme == Themes.Dark ? Themes.Light : Themes.Dark; - SettingHelper.Set("LastTheme", (int) Theme); + SettingHelper.Set("LastTheme", (int) Theme, "QuickLook.Plugin.ImageViewer"); } private void ShowMeta() diff --git a/QuickLook.Plugin/QuickLook.Plugin.ImageViewer/Plugin.cs b/QuickLook.Plugin/QuickLook.Plugin.ImageViewer/Plugin.cs index e68254a..e7af3c3 100644 --- a/QuickLook.Plugin/QuickLook.Plugin.ImageViewer/Plugin.cs +++ b/QuickLook.Plugin/QuickLook.Plugin.ImageViewer/Plugin.cs @@ -73,7 +73,7 @@ namespace QuickLook.Plugin.ImageViewer else context.PreferredSize = new Size(800, 600); - context.Theme = (Themes) SettingHelper.Get("LastTheme", 1); + context.Theme = (Themes) SettingHelper.Get("LastTheme", 1, "QuickLook.Plugin.ImageViewer"); } public void View(string path, ContextObject context) diff --git a/QuickLook.Plugin/QuickLook.Plugin.VideoViewer/ViewerPanel.xaml.cs b/QuickLook.Plugin/QuickLook.Plugin.VideoViewer/ViewerPanel.xaml.cs index f26b9cb..0d054e4 100644 --- a/QuickLook.Plugin/QuickLook.Plugin.VideoViewer/ViewerPanel.xaml.cs +++ b/QuickLook.Plugin/QuickLook.Plugin.VideoViewer/ViewerPanel.xaml.cs @@ -70,7 +70,7 @@ namespace QuickLook.Plugin.VideoViewer mediaElement.MediaEnded += MediaEnded; mediaElement.MediaFailed += MediaFailed; - ShouldLoop = SettingHelper.Get("ShouldLoop", false); + ShouldLoop = SettingHelper.Get("ShouldLoop", false, "QuickLook.Plugin.VideoViewer"); buttonPlayPause.Click += TogglePlayPause; buttonLoop.Click += ToggleShouldLoop; @@ -145,8 +145,8 @@ namespace QuickLook.Plugin.VideoViewer public void Dispose() { // old plugin use an int-typed "Volume" config key ranged from 0 to 100. Let's use a new one here. - SettingHelper.Set("VolumeDouble", LinearVolume); - SettingHelper.Set("ShouldLoop", ShouldLoop); + SettingHelper.Set("VolumeDouble", LinearVolume, "QuickLook.Plugin.VideoViewer"); + SettingHelper.Set("ShouldLoop", ShouldLoop, "QuickLook.Plugin.VideoViewer"); try { @@ -341,7 +341,7 @@ namespace QuickLook.Plugin.VideoViewer mediaElement.Source = new Uri(path); // old plugin use an int-typed "Volume" config key ranged from 0 to 100. Let's use a new one here. - LinearVolume = SettingHelper.Get("VolumeDouble", 1d); + LinearVolume = SettingHelper.Get("VolumeDouble", 1d, "QuickLook.Plugin.VideoViewer"); mediaElement.Play(); }