feat(preferences): ✨ Add email sync interval setting (#710)
* feat(preferences): ✨ Add email sync interval setting Introduced a new property `EmailSyncIntervalMinutes` in the `IPreferencesService` interface to allow users to configure the email synchronization interval in minutes. This feature enhances user control over email sync behavior. • Updated `resources.json` to include translations for the new setting. • Implemented the logic for the new property in `PreferencesService.cs`, with a default value of 3 minutes. • Added binding and UI support in `AppPreferencesPageViewModel.cs` and `AppPreferencesPage.xaml` to allow users to modify the sync interval. • Integrated the new setting into `ServerContext.cs` to dynamically adjust the synchronization timer based on user preferences. This change improves the user experience by providing customizable email synchronization settings. * Minimum interval and added an icon. * Proper SetProperty usage. * Making sure the minimum sync interval is 1 in the ServerContext. * Making sure the minimum is applied to first trigger of the sync timer. --------- Co-authored-by: Burak Kaan Köse <bkaankose@outlook.com>
This commit is contained in:
committed by
GitHub
parent
8cd7f68c30
commit
c2bb07ff3d
@@ -51,6 +51,12 @@ public interface IPreferencesService: INotifyPropertyChanged
|
||||
/// Local search will still offer online search at the end of local search results.
|
||||
/// </summary>
|
||||
SearchMode DefaultSearchMode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Setting: Interval in minutes for background email synchronization.
|
||||
/// </summary>
|
||||
int EmailSyncIntervalMinutes { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
#region Mail
|
||||
|
||||
@@ -698,7 +698,9 @@
|
||||
"WinoUpgradeDescription": "Wino offers 3 accounts to start with for free. If you need more than 3 accounts, please upgrade",
|
||||
"WinoUpgradeMessage": "Upgrade to Unlimited Accounts",
|
||||
"WinoUpgradeRemainingAccountsMessage": "{0} out of {1} free accounts used.",
|
||||
"Yesterday": "Yesterday"
|
||||
"Yesterday": "Yesterday",
|
||||
"SettingsAppPreferences_EmailSyncInterval_Title": "Email sync interval",
|
||||
"SettingsAppPreferences_EmailSyncInterval_Description": "Automatic email synchronization interval (minutes). This setting will be applied only after restarting Wino Mail."
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -689,7 +689,9 @@
|
||||
"WinoUpgradeDescription": "Wino offre 3 account per iniziare gratuitamente. Se hai bisogno di più di 3 account, per favore aggiorna",
|
||||
"WinoUpgradeMessage": "Aggiorna ad account illimitati",
|
||||
"WinoUpgradeRemainingAccountsMessage": "{0} di {1} account gratuiti usati.",
|
||||
"Yesterday": "Ieri"
|
||||
"Yesterday": "Ieri",
|
||||
"SettingsAppPreferences_EmailSyncInterval_Title": "Intervallo sincronizzazione email",
|
||||
"SettingsAppPreferences_EmailSyncInterval_Description": "Intervallo di sincronizzazione automatica delle email (minuti). Questa impostazione verrà applicata solo dopo il riavvio di Wino Mail."
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user