mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-12 18:39:45 +00:00
Fix config domain mismatch due to CLR optimisation
This commit is contained in:
Submodule QuickLook.Common updated: 7b4e2fd3a0...657a9d2a6e
@@ -278,7 +278,7 @@ namespace QuickLook.Plugin.ImageViewer
|
|||||||
{
|
{
|
||||||
Theme = Theme == Themes.Dark ? Themes.Light : Themes.Dark;
|
Theme = Theme == Themes.Dark ? Themes.Light : Themes.Dark;
|
||||||
|
|
||||||
SettingHelper.Set("LastTheme", (int) Theme);
|
SettingHelper.Set("LastTheme", (int) Theme, "QuickLook.Plugin.ImageViewer");
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ShowMeta()
|
private void ShowMeta()
|
||||||
|
@@ -73,7 +73,7 @@ namespace QuickLook.Plugin.ImageViewer
|
|||||||
else
|
else
|
||||||
context.PreferredSize = new Size(800, 600);
|
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)
|
public void View(string path, ContextObject context)
|
||||||
|
@@ -70,7 +70,7 @@ namespace QuickLook.Plugin.VideoViewer
|
|||||||
mediaElement.MediaEnded += MediaEnded;
|
mediaElement.MediaEnded += MediaEnded;
|
||||||
mediaElement.MediaFailed += MediaFailed;
|
mediaElement.MediaFailed += MediaFailed;
|
||||||
|
|
||||||
ShouldLoop = SettingHelper.Get("ShouldLoop", false);
|
ShouldLoop = SettingHelper.Get("ShouldLoop", false, "QuickLook.Plugin.VideoViewer");
|
||||||
|
|
||||||
buttonPlayPause.Click += TogglePlayPause;
|
buttonPlayPause.Click += TogglePlayPause;
|
||||||
buttonLoop.Click += ToggleShouldLoop;
|
buttonLoop.Click += ToggleShouldLoop;
|
||||||
@@ -145,8 +145,8 @@ namespace QuickLook.Plugin.VideoViewer
|
|||||||
public void Dispose()
|
public void Dispose()
|
||||||
{
|
{
|
||||||
// old plugin use an int-typed "Volume" config key ranged from 0 to 100. Let's use a new one here.
|
// 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("VolumeDouble", LinearVolume, "QuickLook.Plugin.VideoViewer");
|
||||||
SettingHelper.Set("ShouldLoop", ShouldLoop);
|
SettingHelper.Set("ShouldLoop", ShouldLoop, "QuickLook.Plugin.VideoViewer");
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@@ -341,7 +341,7 @@ namespace QuickLook.Plugin.VideoViewer
|
|||||||
|
|
||||||
mediaElement.Source = new Uri(path);
|
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.
|
// 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();
|
mediaElement.Play();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user