Brought changes from featured branch.
This commit is contained in:
Родитель
3361779172
Коммит
3e321d54c3
|
@ -6,7 +6,7 @@
|
|||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{9EBF043A-3FF8-46CB-A204-3E3BDF35ED49}</ProjectGuid>
|
||||
<OutputType>Exe</OutputType>
|
||||
<RootNamespace>AppVNext.Notifier.ConsoleUwp</RootNamespace>
|
||||
<RootNamespace>AppVNext.Notifier</RootNamespace>
|
||||
<AssemblyName>notifier</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
|
||||
<TargetPlatformVersion>10.0.10240.0</TargetPlatformVersion>
|
||||
|
@ -136,6 +136,7 @@
|
|||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Constants.cs" />
|
||||
<Compile Include="DesktopNotificationManagerCompat.cs" />
|
||||
<Compile Include="NotifierActivator.cs" />
|
||||
<Compile Include="NotificationEvents.cs" />
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace AppVNext.Notifier
|
||||
{
|
||||
/// <summary>
|
||||
/// Local public constants
|
||||
/// </summary>
|
||||
public class Constants
|
||||
{
|
||||
/// <summary>
|
||||
/// Used to temporarily save files downloaded files.
|
||||
/// </summary>
|
||||
public const string ImagesFolder = "BraveAdsNotifierImages";
|
||||
}
|
||||
}
|
|
@ -190,7 +190,7 @@ namespace AppVNext.Notifier
|
|||
return httpImage;
|
||||
}
|
||||
|
||||
var directory = Directory.CreateDirectory(Path.GetTempPath() + "AppVNextNotifierImages");
|
||||
var imagesDirectory = Directory.CreateDirectory(Path.GetTempPath() + Constants.ImagesFolder);
|
||||
|
||||
if (!_hasPerformedCleanup)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче