mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 09:46:54 +02:00
[AOT] clean up AOT issue in Settings.UI (#36559)
* Rename source generation context file * fix build issue * fix path bug --------- Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>
This commit is contained in:
@@ -17,10 +17,11 @@ using Microsoft.PowerToys.Settings.UI.Library;
|
||||
using Microsoft.PowerToys.Settings.UI.Library.Helpers;
|
||||
using Microsoft.PowerToys.Settings.UI.Library.Interfaces;
|
||||
using Microsoft.PowerToys.Settings.UI.Library.ViewModels.Commands;
|
||||
using Microsoft.PowerToys.Settings.UI.SerializationContext;
|
||||
|
||||
namespace Microsoft.PowerToys.Settings.UI.ViewModels
|
||||
{
|
||||
public class PowerLauncherViewModel : Observable
|
||||
public partial class PowerLauncherViewModel : Observable
|
||||
{
|
||||
private int _themeIndex;
|
||||
private int _monitorPositionIndex;
|
||||
@@ -74,7 +75,7 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels
|
||||
CultureInfo.InvariantCulture,
|
||||
"{{ \"powertoys\": {{ \"{0}\": {1} }} }}",
|
||||
PowerLauncherSettings.ModuleName,
|
||||
JsonSerializer.Serialize(s)));
|
||||
JsonSerializer.Serialize(s, SourceGenerationContextContext.Default.PowerLauncherSettings)));
|
||||
};
|
||||
|
||||
switch (settings.Properties.Theme)
|
||||
@@ -103,7 +104,7 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels
|
||||
break;
|
||||
}
|
||||
|
||||
SearchPluginsCommand = new RelayCommand(SearchPlugins);
|
||||
SearchPluginsCommand = new Library.ViewModels.Commands.RelayCommand(SearchPlugins);
|
||||
}
|
||||
|
||||
private void InitializeEnabledValue()
|
||||
|
||||
Reference in New Issue
Block a user