File tree 5 files changed +36
-4
lines changed
5 files changed +36
-4
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning 2.0](https://semver.org/spec/v2
8
8
## v2.5.5
9
9
### Added
10
10
- Added Spanish UI language options, thanks to Carlos Baena and Lautaroturina for the translations
11
+ - Manual input prompt popup on package input requests besides Y/n confirmations
12
+ - Added ` --disable-gpu ` launch argument to disable hardware accelerated rendering
11
13
### Fixed
12
14
- Fixed infinite progress wheel when package uninstall fails
13
15
Original file line number Diff line number Diff line change @@ -35,4 +35,9 @@ public class AppArgs
35
35
/// Flag to indicate if we should reset the saved window position back to (O,0)
36
36
/// </summary>
37
37
public bool ResetWindowPosition { get ; set ; }
38
+
39
+ /// <summary>
40
+ /// Flag for disabling hardware acceleration / GPU rendering
41
+ /// </summary>
42
+ public bool DisableGpuRendering { get ; set ; }
38
43
}
Original file line number Diff line number Diff line change 12
12
using Avalonia . Controls ;
13
13
using Avalonia . Controls . ApplicationLifetimes ;
14
14
using Avalonia . Threading ;
15
- using FluentAvalonia . Core ;
16
15
using NLog ;
17
16
using Polly . Contrib . WaitAndRetry ;
18
17
using Projektanker . Icons . Avalonia ;
@@ -54,6 +53,7 @@ public static void Main(string[] args)
54
53
Args . NoSentry = args . Contains ( "--no-sentry" ) ;
55
54
Args . NoWindowChromeEffects = args . Contains ( "--no-window-chrome-effects" ) ;
56
55
Args . ResetWindowPosition = args . Contains ( "--reset-window-position" ) ;
56
+ Args . DisableGpuRendering = args . Contains ( "--disable-gpu" ) ;
57
57
58
58
SetDebugBuild ( ) ;
59
59
@@ -90,7 +90,28 @@ public static AppBuilder BuildAvaloniaApp()
90
90
ImageLoader . AsyncImageLoader . Dispose ( ) ;
91
91
ImageLoader . AsyncImageLoader = new FallbackRamCachedWebImageLoader ( ) ;
92
92
93
- return AppBuilder . Configure < App > ( ) . UsePlatformDetect ( ) . WithInterFont ( ) . LogToTrace ( ) ;
93
+ var app = AppBuilder . Configure < App > ( ) . UsePlatformDetect ( ) . WithInterFont ( ) . LogToTrace ( ) ;
94
+
95
+ if ( Args . DisableGpuRendering )
96
+ {
97
+ app = app . With (
98
+ new Win32PlatformOptions
99
+ {
100
+ RenderingMode = new [ ] { Win32RenderingMode . Software }
101
+ }
102
+ )
103
+ . With (
104
+ new X11PlatformOptions { RenderingMode = new [ ] { X11RenderingMode . Software } }
105
+ )
106
+ . With (
107
+ new AvaloniaNativePlatformOptions
108
+ {
109
+ RenderingMode = new [ ] { AvaloniaNativeRenderingMode . Software }
110
+ }
111
+ ) ;
112
+ }
113
+
114
+ return app ;
94
115
}
95
116
96
117
private static void HandleUpdateReplacement ( )
Original file line number Diff line number Diff line change 1
- <Project Sdk =" Microsoft.NET.Sdk" >
1
+ <Project Sdk =" Microsoft.NET.Sdk" >
2
2
<PropertyGroup >
3
3
<OutputType >WinExe</OutputType >
4
4
<TargetFramework >net7.0</TargetFramework >
8
8
<ApplicationManifest >app.manifest</ApplicationManifest >
9
9
<AvaloniaUseCompiledBindingsByDefault >true</AvaloniaUseCompiledBindingsByDefault >
10
10
<ApplicationIcon >./Assets/Icon.ico</ApplicationIcon >
11
- <Version >2.5.3 -dev.1</Version >
11
+ <Version >2.5.5 -dev.1</Version >
12
12
<InformationalVersion >$(Version)</InformationalVersion >
13
13
<EnableWindowsTargeting >true</EnableWindowsTargeting >
14
14
<AllowUnsafeBlocks >true</AllowUnsafeBlocks >
Original file line number Diff line number Diff line change @@ -146,6 +146,10 @@ ServiceManager<ViewModelBase> dialogFactory
146
146
{
147
147
ShowConfirmInputPrompt = true ;
148
148
}
149
+ else
150
+ {
151
+ ShowManualInputPrompt = true ;
152
+ }
149
153
} ;
150
154
}
151
155
You can’t perform that action at this time.
0 commit comments