mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-02 10:48:37 +00:00
Improve QuickLook initialization speed
This commit is contained in:
@@ -15,9 +15,7 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
using ICSharpCode.AvalonEdit;
|
||||
using QuickLook.Common.Plugin;
|
||||
using QuickLook.Plugin.TextViewer.Themes;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
@@ -35,11 +33,6 @@ public class Plugin : IViewer
|
||||
|
||||
public void Init()
|
||||
{
|
||||
// pre-load
|
||||
var _ = new TextEditor();
|
||||
|
||||
HighlightingThemeManager.Initialize();
|
||||
|
||||
// Implementation of the Search Panel Styled with Fluent Theme
|
||||
{
|
||||
var groupDictionary = new ResourceDictionary();
|
||||
|
@@ -40,6 +40,11 @@ public partial class TextViewerPanel : TextEditor, IDisposable
|
||||
{
|
||||
private bool _disposed;
|
||||
|
||||
static TextViewerPanel()
|
||||
{
|
||||
HighlightingThemeManager.Initialize();
|
||||
}
|
||||
|
||||
public TextViewerPanel()
|
||||
{
|
||||
FontSize = 14;
|
||||
|
Reference in New Issue
Block a user