mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-12 18:39:45 +00:00
New option CheckPreviewHandler
This commit is contained in:
@@ -15,6 +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 QuickLook.Common.Helpers;
|
||||
using QuickLook.Common.Plugin;
|
||||
using System;
|
||||
using System.IO;
|
||||
@@ -55,6 +56,10 @@ public class Plugin : IViewer
|
||||
if (previewHandler == Guid.Empty)
|
||||
return false;
|
||||
|
||||
var checkPreviewHandler = SettingHelper.Get("CheckPreviewHandler", true, "QuickLook.Plugin.OfficeViewer");
|
||||
if (!checkPreviewHandler)
|
||||
return true;
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(CLSIDRegister.GetName(previewHandler.ToString("B"))))
|
||||
{
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user