mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-12 18:39:45 +00:00
fix translations and settings
This commit is contained in:
@@ -22,6 +22,7 @@ using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using ICSharpCode.AvalonEdit.Highlighting;
|
||||
using QuickLook.Common;
|
||||
using QuickLook.Common.Helpers;
|
||||
using UtfUnknown;
|
||||
|
||||
namespace QuickLook.Plugin.TextViewer
|
||||
@@ -41,8 +42,7 @@ namespace QuickLook.Plugin.TextViewer
|
||||
|
||||
viewer.PreviewMouseWheel += Viewer_MouseWheel;
|
||||
|
||||
viewer.FontFamily =
|
||||
new FontFamily(context.GetString("Editor_FontFamily"));
|
||||
viewer.FontFamily = new FontFamily(TranslationHelper.Get("Editor_FontFamily"));
|
||||
|
||||
LoadFile(path);
|
||||
}
|
||||
|
@@ -32,6 +32,7 @@ using Meta.Vlc.Interop.Media;
|
||||
using QuickLook.Common;
|
||||
using QuickLook.Common.Annotations;
|
||||
using QuickLook.Common.ExtensionMethods;
|
||||
using QuickLook.Common.Helpers;
|
||||
using MediaState = Meta.Vlc.Interop.Media.MediaState;
|
||||
|
||||
namespace QuickLook.Plugin.VideoViewer
|
||||
@@ -169,7 +170,7 @@ namespace QuickLook.Plugin.VideoViewer
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
_context.SetSetting("Volume", mediaElement.Volume);
|
||||
SettingHelper.Set("Volume", mediaElement.Volume);
|
||||
|
||||
try
|
||||
{
|
||||
@@ -320,7 +321,7 @@ namespace QuickLook.Plugin.VideoViewer
|
||||
public void LoadAndPlay(string path)
|
||||
{
|
||||
mediaElement.LoadMediaWithOptions(path, ":avcodec-hw=dxva2");
|
||||
mediaElement.Volume = _context.GetSetting("Volume", 50);
|
||||
mediaElement.Volume = SettingHelper.Get("Volume", 50);
|
||||
|
||||
mediaElement.Play();
|
||||
}
|
||||
|
Reference in New Issue
Block a user