slackgmailskypefacebook-workplaceoutlookemailmicrosoft-teamsdiscordmessengercustom-servicesmacoslinuxwindowsinboxwhatsappicloudtweetdeckhipchattelegramhangouts
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
506 B
22 lines
506 B
Ext.define('Rambox.view.preferences.PreferencesController', { |
|
extend: 'Ext.app.ViewController' |
|
,alias: 'controller.preferences-preferences' |
|
|
|
,cancel: function( btn ) { |
|
var me = this; |
|
|
|
me.getView().close(); |
|
} |
|
|
|
,save: function( btn ) { |
|
var me = this; |
|
|
|
var values = me.getView().down('form').getForm().getFieldValues(); |
|
|
|
// Proxy |
|
if ( values.proxy && (Ext.isEmpty(values.proxyHost) || Ext.isEmpty(values.proxyPort)) ) return; |
|
|
|
ipc.send('setConfig', values); |
|
me.getView().close(); |
|
} |
|
});
|
|
|