File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ export default {
13
13
name: ' sshfs-win-manager' ,
14
14
15
15
mounted () {
16
+ this .$store .dispatch (' APPLY_CONNECTIONS_MIGRATIONS' )
17
+
16
18
ipcRenderer .on (' terminate-child-processes' , () => {
17
19
ProcessManager .terminateAll ().then (() => {
18
20
ipcRenderer .send (' child-processes-terminated' )
Original file line number Diff line number Diff line change @@ -31,6 +31,17 @@ const mutations = {
31
31
32
32
CLEAR_CONNECTIONS ( state ) {
33
33
state . connections = [ ]
34
+ } ,
35
+
36
+ MIGRATE_CONNECTIONS_ADVANCED_OPTIONS ( state ) {
37
+ state . connections . forEach ( conn => {
38
+ if ( ! conn . advanced ) {
39
+ conn . advanced = {
40
+ customCmdlOptionsEnabled : false ,
41
+ customCmdlOptions : [ ]
42
+ }
43
+ }
44
+ } )
34
45
}
35
46
}
36
47
@@ -53,6 +64,10 @@ const actions = {
53
64
54
65
CLEAR_CONNECTIONS ( { commit } ) {
55
66
commit ( 'CLEAR_CONNECTIONS' )
67
+ } ,
68
+
69
+ APPLY_CONNECTIONS_MIGRATIONS ( { commit } ) {
70
+ commit ( 'MIGRATE_CONNECTIONS_ADVANCED_OPTIONS' )
56
71
}
57
72
}
58
73
You can’t perform that action at this time.
0 commit comments