This repository was archived by the owner on Jun 21, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
src/GitHub.App/Controllers Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 11using System ;
22using System . ComponentModel . Composition ;
33using System . Diagnostics ;
4+ using System . Reactive . Concurrency ;
45using System . Reactive . Disposables ;
56using System . Reactive . Linq ;
67using System . Reactive . Subjects ;
8+ using System . Windows ;
79using System . Windows . Controls ;
810using GitHub . Authentication ;
911using GitHub . Exports ;
1517using NullGuard ;
1618using ReactiveUI ;
1719using Stateless ;
18- using System . Windows ;
19- using System . Reactive . Concurrency ;
2020
2121namespace GitHub . Controllers
2222{
@@ -265,10 +265,7 @@ public void Start([AllowNull] IConnection connection)
265265 public void Stop ( )
266266 {
267267 Debug . WriteLine ( "Stop ({0})" , GetHashCode ( ) ) ;
268- if ( machine . IsInState ( UIViewType . End ) )
269- Fire ( Trigger . Next ) ;
270- else
271- Fire ( Trigger . Cancel ) ;
268+ Fire ( machine . IsInState ( UIViewType . End ) ? Trigger . Next : Trigger . Cancel ) ;
272269 }
273270
274271 bool disposed ; // To detect redundant calls
@@ -291,6 +288,6 @@ public void Dispose()
291288 GC . SuppressFinalize ( this ) ;
292289 }
293290
294- public bool IsStopped { get { return machine . IsInState ( UIViewType . Finished ) ; } }
291+ public bool IsStopped => machine . IsInState ( UIViewType . Finished ) ;
295292 }
296293}
You can’t perform that action at this time.
0 commit comments