Skip to content

Commit

Permalink
Updated for marketplace.
Browse files Browse the repository at this point in the history
  • Loading branch information
oddbear committed May 2, 2022
1 parent 3f5f62c commit 8abcc4a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -309,3 +309,7 @@ testem.log
*.xcactivitylog

*.DotSettings

#Raw image resources
*.afphoto
*.afdesign
2 changes: 1 addition & 1 deletion PowerToysPlugin/Helpers/ResourceHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public static BitmapImage GetBackgroundImage(string path)

var bytes = File.ReadAllBytes(diskPath);

return new BitmapImage(bytes);
return BitmapImage.FromArray(bytes);
}
catch
{
Expand Down
3 changes: 2 additions & 1 deletion PowerToysPlugin/PowerToysPlugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>C:\Users\oddbj\AppData\Local\Loupedeck\Plugins</OutputPath>
<OutputPath>..\..\..\..\AppData\Local\Loupedeck\Plugins\PowerToysPlugin\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
Expand All @@ -32,6 +32,7 @@
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<OutputPath>..\..\bin\PowerToysPlugin\bin\win\</OutputPath>
</PropertyGroup>
<ItemGroup>
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
Expand Down
1 change: 1 addition & 0 deletions PowerToysPlugin/Services/BaseSettingsService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public BaseSettingsService(string pathName)
var fileName = Path.GetFileName(location);

_watcher = new FileSystemWatcher(directory, fileName);
_watcher.EnableRaisingEvents = true;
_watcher.Changed += WatcherOnChanged;
}

Expand Down

0 comments on commit 8abcc4a

Please sign in to comment.