mirror of
https://github.com/ckaczor/FeedCenter.git
synced 2026-01-13 17:22:48 -05:00
Update for "Set Program Access and Defaults" support
This commit is contained in:
@@ -87,7 +87,8 @@ namespace FeedCenter
|
||||
Current.SetStartWithWindows(Settings.Default.StartWithWindows);
|
||||
|
||||
// Set whether we should be the default feed reader
|
||||
SystemConfiguration.SetDefaultFeedReader(Settings.Default.RegisterAsDefaultFeedReader);
|
||||
if (Settings.Default.RegisterAsDefaultFeedReader)
|
||||
SystemConfiguration.SetDefaultFeedReader();
|
||||
|
||||
// Initialize the window
|
||||
mainWindow.Initialize();
|
||||
|
||||
@@ -36,7 +36,9 @@ namespace FeedCenter.Options
|
||||
settings.RegisterAsDefaultFeedReader = registerAsDefaultFeedReaderCheckBox.IsChecked.Value;
|
||||
|
||||
Application.Current.SetStartWithWindows(settings.StartWithWindows);
|
||||
SystemConfiguration.SetDefaultFeedReader(settings.RegisterAsDefaultFeedReader);
|
||||
|
||||
if (settings.RegisterAsDefaultFeedReader)
|
||||
SystemConfiguration.SetDefaultFeedReader();
|
||||
}
|
||||
|
||||
public override string CategoryName
|
||||
|
||||
@@ -4,12 +4,13 @@ using System;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
using System.Windows;
|
||||
using FeedCenter.Properties;
|
||||
|
||||
namespace FeedCenter
|
||||
{
|
||||
public static class SystemConfiguration
|
||||
{
|
||||
public static void SetDefaultFeedReader(bool value)
|
||||
public static void SetDefaultFeedReader()
|
||||
{
|
||||
// Get the location of the assembly
|
||||
var assemblyLocation = Assembly.GetEntryAssembly().Location;
|
||||
|
||||
Reference in New Issue
Block a user