mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-02 02:44:41 +00:00
Refactor AnimationProvider to use primary constructor
This commit is contained in:
@@ -24,20 +24,13 @@ using System.Windows.Media.Imaging;
|
||||
|
||||
namespace QuickLook.Plugin.ImageViewer.AnimatedImage;
|
||||
|
||||
internal abstract class AnimationProvider : IDisposable
|
||||
internal abstract class AnimationProvider(Uri path, MetaProvider meta, ContextObject contextObject) : IDisposable
|
||||
{
|
||||
protected AnimationProvider(Uri path, MetaProvider meta, ContextObject contextObject)
|
||||
{
|
||||
Path = path;
|
||||
Meta = meta;
|
||||
ContextObject = contextObject;
|
||||
}
|
||||
public Uri Path { get; } = path;
|
||||
|
||||
public Uri Path { get; }
|
||||
public MetaProvider Meta { get; } = meta;
|
||||
|
||||
public MetaProvider Meta { get; }
|
||||
|
||||
public ContextObject ContextObject { get; }
|
||||
public ContextObject ContextObject { get; } = contextObject;
|
||||
|
||||
public Int32AnimationUsingKeyFrames Animator { get; protected set; }
|
||||
|
||||
|
Reference in New Issue
Block a user