Skip to content

Commit

Permalink
Merge pull request #30 from beyluta/development
Browse files Browse the repository at this point in the history
Hotfix Windows 11 22H2 Update
  • Loading branch information
beyluta authored Nov 26, 2022
2 parents 0db81db + c115028 commit 6eb07ab
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Abstract/WidgetWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public string GetMetaTagValue(string name, string widgetPath)
{
var doc = new HtmlAgilityPack.HtmlDocument();
doc.Load(widgetPath);
return doc.DocumentNode.SelectSingleNode("//meta[@name='" + name + "']").GetAttributeValue("content", null);
return doc.DocumentNode.SelectSingleNode("//meta[@name='" + name + "']")?.GetAttributeValue("content", null);
}
catch { return null; }
}
Expand Down
2 changes: 1 addition & 1 deletion Assets/config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"version": "1.1.6",
"version": "1.1.7",
"remoteResources": "https://7xdeveloper.com/api/AccessEndpoint.php?endpoint=getappconfigs&id=resources"
}
8 changes: 0 additions & 8 deletions Classes/WindowEssentials.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ namespace Widgets
{
internal class WindowEssentials
{
public const int SW_HIDE = 0;
public const int GWL_EXSTYLE = -20;
public const int WS_EX_LAYERED = 0x80000;
public const int LWA_ALPHA = 0x2;
Expand All @@ -24,13 +23,6 @@ public static implicit operator Point(POINT point)
}
}

[DllImport("user32.dll")]
[return: MarshalAs(UnmanagedType.Bool)]
public static extern bool ShowWindow(IntPtr hWnd, int nCmdShow);

[DllImport("kernel32.dll")]
public static extern IntPtr GetConsoleWindow();

[DllImport("Gdi32.dll", EntryPoint = "CreateRoundRectRgn")]
public static extern IntPtr CreateRoundRectRgn
(
Expand Down
2 changes: 0 additions & 2 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ internal class Program : WindowEssentials
[STAThread]
private static void Main(string[] args)
{
ShowWindow(GetConsoleWindow(), SW_HIDE);

bool processExists = System.Diagnostics.Process.GetProcessesByName(
System.IO.Path.GetFileNameWithoutExtension(
System.Reflection.Assembly.GetEntryAssembly().Location))
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<p align="center">
<a href="https://github.com/beyluta/WinWidgets">
<img src="https://img.shields.io/badge/Version-1.1.6-green" alt="WinWidgets version" />
<img src="https://img.shields.io/badge/Version-1.1.7-green" alt="WinWidgets version" />
</a>
</p>

Expand Down
5 changes: 4 additions & 1 deletion WidgetsDotNet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{593B64B7-556B-4E43-8637-FDBD841A0C63}</ProjectGuid>
<OutputType>Exe</OutputType>
<OutputType>WinExe</OutputType>
<RootNamespace>WidgetsDotNet</RootNamespace>
<AssemblyName>WidgetsDotNet</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
Expand Down Expand Up @@ -57,6 +57,9 @@
<PropertyGroup>
<AssemblyOriginatorKeyFile>WidgetsDotNet_TemporaryKey.pfx</AssemblyOriginatorKeyFile>
</PropertyGroup>
<PropertyGroup>
<StartupObject />
</PropertyGroup>
<ItemGroup>
<Reference Include="CefSharp, Version=102.0.90.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138, processorArchitecture=MSIL">
<HintPath>packages\CefSharp.Common.102.0.90\lib\net452\CefSharp.dll</HintPath>
Expand Down

0 comments on commit 6eb07ab

Please sign in to comment.