Skip to content

Commit

Permalink
refactor: remove change handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodrr committed Jun 10, 2019
1 parent 678bed5 commit cdac883
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/renderer/components/Preference/Advanced.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,13 @@
<el-col class="form-item-sub" :span="24">
<el-switch
v-model="form.protocols.magnet"
@change="onUseMagnetProtocolChange"
:active-text="$t('preferences.protocols-magnet')"
>
</el-switch>
</el-col>
<el-col class="form-item-sub" :span="24">
<el-switch
v-model="form.protocols.thunder"
@change="onUseThunderProtocolChange"
:active-text="$t('preferences.protocols-thunder')"
>
</el-switch>
Expand Down Expand Up @@ -272,12 +270,6 @@
this.trackerSyncing = false
})
},
onUseMagnetProtocolChange (flag) {
this.form.protocols.magnet = flag
},
onUseThunderProtocolChange (flag) {
this.form.protocols.thunder = flag
},
onUseProxyChange (flag) {
this.form.allProxy = flag ? this.form.allProxyBackup : ''
},
Expand Down

0 comments on commit cdac883

Please sign in to comment.