Example #1
0
 private void ResetDefault()
 {
     Alert.Show(null, I18n.__("config.alert.resetdefault"), () =>
     {
         configManager.ResetToDefault();
         inputMappingController.ResetDefault();
         configManager.Apply();
         inputMappingController.Apply();
         I18n.CurrentLocale = Application.systemLanguage;
     });
 }
Example #2
0
 private void ResetDefault()
 {
     Alert.Show(null, I18n.__("config.alert.resetdefault"), () =>
     {
         configManager.ResetToDefault();
         inputMappingController.ResetDefault();
         configManager.Apply();
         // error will occur if reset default button is clicked before the InputMappingController starts
         // as the InputMappingController will reload data from current InputMapping, which will not get
         // updated unless the apply method get called.
         inputMappingController.Apply();
     });
 }