@@ -48,7 +48,11 @@ public partial class FileSyncListViewModel : ObservableObject
48
48
[ NotifyPropertyChangedFor ( nameof ( ShowSessions ) ) ]
49
49
public partial string ? Error { get ; set ; } = null ;
50
50
51
- [ ObservableProperty ] public partial bool OperationInProgress { get ; set ; } = false ;
51
+ [ ObservableProperty ]
52
+ [ NotifyPropertyChangedFor ( nameof ( CanOpenLocalPath ) ) ]
53
+ [ NotifyPropertyChangedFor ( nameof ( NewSessionRemoteHostEnabled ) ) ]
54
+ [ NotifyPropertyChangedFor ( nameof ( NewSessionRemotePathDialogEnabled ) ) ]
55
+ public partial bool OperationInProgress { get ; set ; } = false ;
52
56
53
57
[ ObservableProperty ] public partial IReadOnlyList < SyncSessionViewModel > Sessions { get ; set ; } = [ ] ;
54
58
@@ -60,6 +64,7 @@ public partial class FileSyncListViewModel : ObservableObject
60
64
61
65
[ ObservableProperty ]
62
66
[ NotifyPropertyChangedFor ( nameof ( NewSessionCreateEnabled ) ) ]
67
+ [ NotifyPropertyChangedFor ( nameof ( CanOpenLocalPath ) ) ]
63
68
public partial bool NewSessionLocalPathDialogOpen { get ; set ; } = false ;
64
69
65
70
[ ObservableProperty ]
@@ -80,10 +85,12 @@ public partial class FileSyncListViewModel : ObservableObject
80
85
[ NotifyPropertyChangedFor ( nameof ( NewSessionRemotePathDialogEnabled ) ) ]
81
86
public partial bool NewSessionRemotePathDialogOpen { get ; set ; } = false ;
82
87
83
- public bool NewSessionRemoteHostEnabled => AvailableHosts . Count > 0 ;
88
+ public bool CanOpenLocalPath => ! NewSessionLocalPathDialogOpen && ! OperationInProgress ;
89
+
90
+ public bool NewSessionRemoteHostEnabled => AvailableHosts . Count > 0 && ! OperationInProgress ;
84
91
85
92
public bool NewSessionRemotePathDialogEnabled =>
86
- ! string . IsNullOrWhiteSpace ( NewSessionRemoteHost ) && ! NewSessionRemotePathDialogOpen ;
93
+ ! string . IsNullOrWhiteSpace ( NewSessionRemoteHost ) && ! NewSessionRemotePathDialogOpen && ! OperationInProgress ;
87
94
88
95
[ ObservableProperty ] public partial string NewSessionStatus { get ; set ; } = "" ;
89
96