Skip to content

Commit d4097a7

Browse files
committed
fix: #559
1 parent 0aaf606 commit d4097a7

File tree

3 files changed

+22
-11
lines changed

3 files changed

+22
-11
lines changed

Ui/Ui.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<RootNamespace>_1RM</RootNamespace>
1212
<AssemblyName>1Remote</AssemblyName>
1313
<Configurations>Debug;Release;StoreRelease;ReleaseNet48;StoreDebug</Configurations>
14+
<ApplicationManifest>app.manifest</ApplicationManifest>
1415

1516
<ApplicationIcon Condition="'$(Configuration)'=='Debug'">LOGO_D.ico</ApplicationIcon>
1617
<ApplicationIcon Condition="'$(Configuration)'=='StoreDebug'">LOGO_D.ico</ApplicationIcon>

Ui/View/Host/ProtocolHosts/AxMsRdpClient09Host.xaml.cs

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -578,17 +578,18 @@ private void RdpInitPerformance()
578578

579579
// if win11 disable BandwidthDetection, make a workaround for #437 to hide info button after OS Win11 22H2 to avoid app crash when click the info button on Win11
580580
// detail: https://github.com/1Remote/1Remote/issues/437
581-
try
582-
{
583-
if (_1RM.Utils.WindowsApi.WindowsVersionHelper.IsWindows1122H2OrHigher()) // Win11 22H2
584-
{
585-
_rdpClient.AdvancedSettings9.BandwidthDetection = false;
586-
}
587-
}
588-
catch (Exception)
589-
{
590-
// ignored
591-
}
581+
// 20250126: removed due to https://github.com/1Remote/1Remote/issues/559 is fixed
582+
//try
583+
//{
584+
// if (_1RM.Utils.WindowsApi.WindowsVersionHelper.IsWindows1122H2OrHigher()) // Win11 22H2
585+
// {
586+
// _rdpClient.AdvancedSettings9.BandwidthDetection = false;
587+
// }
588+
//}
589+
//catch (Exception)
590+
//{
591+
// // ignored
592+
//}
592593

593594
// ref: https://docs.microsoft.com/en-us/windows/win32/termserv/imsrdpclientadvancedsettings-performanceflags
594595
int nDisplayPerformanceFlag = 0;

Ui/app.manifest

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
2+
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
3+
<description>Windows Forms Common Control manifest</description>
4+
<dependency>
5+
<dependentAssembly>
6+
<assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="*" publicKeyToken="6595b64144ccf1df" language="*" />
7+
</dependentAssembly>
8+
</dependency>
9+
</assembly>

0 commit comments

Comments
 (0)