diff --git a/NextcloudApp/Strings/en/Resources.resw b/NextcloudApp/Strings/en/Resources.resw
index ab77630..b221a4f 100644
--- a/NextcloudApp/Strings/en/Resources.resw
+++ b/NextcloudApp/Strings/en/Resources.resw
@@ -254,7 +254,7 @@ Would you like to inform the application developers and submit the prepared erro
{0} of {1} used
-
+
Reset this app
@@ -676,4 +676,10 @@ Please try again later.
Uncheck all
+
+ Are you sure you want to reset this app? This will reset all application and all your synchronisation settings.
+
+
+ Reset this app
+
\ No newline at end of file
diff --git a/NextcloudApp/ViewModels/SettingsPageViewModel.cs b/NextcloudApp/ViewModels/SettingsPageViewModel.cs
index 0fac3d8..154af97 100644
--- a/NextcloudApp/ViewModels/SettingsPageViewModel.cs
+++ b/NextcloudApp/ViewModels/SettingsPageViewModel.cs
@@ -170,8 +170,29 @@ namespace NextcloudApp.ViewModels
string.Format(_resourceLoader.GetString("ClientVersion"),
$"{Package.Current.Id.Version.Major}.{Package.Current.Id.Version.Minor}.{Package.Current.Id.Version.Build}");
- private void Reset()
+ private async void Reset()
{
+ var dialog = new ContentDialog
+ {
+ Title = _resourceLoader.GetString("ResetThisApp_Title"),
+ Content = new TextBlock
+ {
+ Text = _resourceLoader.GetString("ResetThisApp_Description"),
+ TextWrapping = TextWrapping.WrapWholeWords,
+ Margin = new Thickness(0, 20, 0, 0)
+ },
+ PrimaryButtonText = _resourceLoader.GetString("Yes"),
+ SecondaryButtonText = _resourceLoader.GetString("No")
+ };
+ dialog.IsPrimaryButtonEnabled = dialog.IsSecondaryButtonEnabled = true;
+
+ var result = await _dialogService.ShowAsync(dialog);
+
+ if (result != ContentDialogResult.Primary)
+ {
+ return;
+ }
+
SettingsService.Instance.Reset();
SyncDbUtils.Reset();
_navigationService.Navigate(PageToken.Login.ToString(), null);
diff --git a/NextcloudApp/Views/SettingsPage.xaml b/NextcloudApp/Views/SettingsPage.xaml
index 254a701..196dc72 100644
--- a/NextcloudApp/Views/SettingsPage.xaml
+++ b/NextcloudApp/Views/SettingsPage.xaml
@@ -152,7 +152,7 @@
Height="1" />