Skip to content

Commit e989b5a

Browse files
committed
Add instance obsolete message
1 parent d4f9099 commit e989b5a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Flow.Launcher.Core/Resource/InternationalizationManager.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
using CommunityToolkit.Mvvm.DependencyInjection;
1+
using System;
2+
using CommunityToolkit.Mvvm.DependencyInjection;
23

34
namespace Flow.Launcher.Core.Resource
45
{
6+
[Obsolete("InternationalizationManager.Instance is obsolete. Use Ioc.Default.GetRequiredService<Internationalization>() instead.")]
57
public static class InternationalizationManager
68
{
79
public static Internationalization Instance

Flow.Launcher.Core/Resource/ThemeManager.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
using CommunityToolkit.Mvvm.DependencyInjection;
1+
using System;
2+
using CommunityToolkit.Mvvm.DependencyInjection;
23

34
namespace Flow.Launcher.Core.Resource
45
{
6+
[Obsolete("ThemeManager.Instance is obsolete. Use Ioc.Default.GetRequiredService<Theme>() instead.")]
57
public class ThemeManager
68
{
79
public static Theme Instance

0 commit comments

Comments
 (0)