Skip to content

Commit

Permalink
Merge branch 'testing'
Browse files Browse the repository at this point in the history
  • Loading branch information
rayenghanmi committed Apr 12, 2024
2 parents 7a00293 + d86f49e commit 6bfd03c
Show file tree
Hide file tree
Showing 22 changed files with 977 additions and 391 deletions.
17 changes: 11 additions & 6 deletions App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.UI.Dispatching;
using Microsoft.UI.Xaml;

using RyTuneX.Activation;
Expand Down Expand Up @@ -100,7 +101,7 @@ public App()
}).
Build();

App.GetService<IAppNotificationService>().Initialize();
//App.GetService<IAppNotificationService>().Initialize();

}

Expand All @@ -113,7 +114,11 @@ protected async override void OnLaunched(LaunchActivatedEventArgs args)
if (showWelcomeNotification)
{
await LogHelper.Log("Showing Welcome Notification");
App.GetService<IAppNotificationService>().Show(string.Format("WelcomeNotification".GetLocalized(), AppContext.BaseDirectory));
App.MainWindow.DispatcherQueue.TryEnqueue(DispatcherQueuePriority.Low, () =>
{
var welcomeMessage = "WelcomeNotice".GetLocalized().Replace("\\n", Environment.NewLine); ;
App.MainWindow.ShowMessageDialogAsync(welcomeMessage, "WelcomeNoticeTitle".GetLocalized());
});

// Set the flag to indicate that the welcome notification has been shown
SetWelcomeNotificationShown();
Expand All @@ -122,19 +127,19 @@ protected async override void OnLaunched(LaunchActivatedEventArgs args)
await App.GetService<IActivationService>().ActivateAsync(args);
}

private bool ShouldShowWelcomeNotification()
private static bool ShouldShowWelcomeNotification()
{
// Check if the setting is not present or set to false
if (!ApplicationData.Current.LocalSettings.Values.ContainsKey("WelcomeNotificationShown"))
if (!ApplicationData.Current.LocalSettings.Values.TryGetValue("WelcomeNotificationShown", out var value))
{
return true; // Show the notification if the setting is not present
}

// Check the value of the setting
return !(bool)ApplicationData.Current.LocalSettings.Values["WelcomeNotificationShown"];
return !(bool)value;
}

private void SetWelcomeNotificationShown()
private static void SetWelcomeNotificationShown()
{
// Set the flag to true to indicate that the welcome notification has been shown
LogHelper.Log("Setting WelcomeNotificationShown");
Expand Down
232 changes: 232 additions & 0 deletions Assets/RemoveEdge.ps1

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,28 @@

All notable changes to this branch will be documented in this file.

## 0.8.0 - Released

### Fixes

- [x] Addressed a bug where the `Show All` checkbox would not retain its state after refreshing the list of installed apps upon uninstallation completion.
- [x] Resolved an issue where certain apps were incorrectly displaying `Uninstalled successfully` despite not being removed.
- [x] Fixed a recurring exception error that could arise after successfully removing certain packages.
- [x] Rectified an issue where reapplying tweaks would fail to initialize toggle switches' previous states.
- [x] Corrected the inaccurate count of uninstalled apps displayed on the `Debloat` page.
- [x] Mitigated a crash occurring on specific Windows versions upon successful installation startup. Refer to issue #8 for more details.

### Added

- Introduced an option to remove temporary files within the `Debloat` page.
- Included the capability to uninstall `Microsoft.MicrosoftEdge`.
- Included an option to extract and import drivers within the `System Info` page.
- Enhanced text and navigation animations.

## Known Issues

- Inconsistencies in language translation for Arabic and French.

## 0.7.2 - Released

### Added
Expand Down
Loading

0 comments on commit 6bfd03c

Please sign in to comment.