File tree Expand file tree Collapse file tree 4 files changed +9
-8
lines changed
SmartImage.Lib 3/Engines/Impl/Upload Expand file tree Collapse file tree 4 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ private void Clear()
6060 Tv_Results . SetNeedsDisplay ( ) ;
6161 Tf_Input . SetFocus ( ) ;
6262 Tf_Input . EnsureFocus ( ) ;
63- Btn_Run . Enabled = false ;
63+ // Btn_Run.Enabled = false;
6464 Btn_Cancel . Enabled = false ;
6565
6666 m_queue . Clear ( ) ;
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ private void Restart_Clicked(bool force = false)
8080
8181 Btn_Restart . Enabled = false ;
8282 Btn_Cancel . Enabled = false ;
83- Btn_Run . Enabled = false ;
83+ Btn_Run . Enabled = true ;
8484 Btn_Delete . Enabled = false ;
8585
8686 m_token . Dispose ( ) ;
@@ -192,12 +192,13 @@ private void Delete_Clicked()
192192 if ( ! string . IsNullOrWhiteSpace ( file ) ) {
193193 file = file . CleanString ( ) ;
194194 Query . Dispose ( ) ;
195+ Restart_Clicked ( true ) ;
195196 Debug . WriteLine ( $ "{ IsQueryReady ( ) } ") ;
196197
197198 Microsoft . VisualBasic . FileIO . FileSystem . DeleteFile ( file , UIOption . OnlyErrorDialogs ,
198199 RecycleOption . SendToRecycleBin ) ;
199200 Debug . WriteLine ( $ "deleted { file } ") ;
200- Clear ( ) ;
201+ // Clear();
201202 }
202203
203204 }
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ static ShellMode() { }
8585 X = Pos . Right ( Lbl_InputOk ) + 1 ,
8686 Y = Pos . Y ( Tf_Input ) ,
8787 ColorScheme = UI . Cs_Btn1x ,
88- Enabled = false
88+ // Enabled = false
8989 } ;
9090
9191 private static readonly Button Btn_Browse = new ( "Browse" )
@@ -572,11 +572,11 @@ internal void SetInputText(ustring s)
572572
573573 private async Task < bool > SetQuery ( ustring text )
574574 {
575- Btn_Run . Enabled = false ;
575+ // Btn_Run.Enabled = false;
576576
577577 if ( IsQueryReady ( ) && Query . Uni . Value as string == text ) {
578578 Debug . WriteLine ( $ "Already loaded { text } ", nameof ( SetQuery ) ) ;
579- Btn_Run . Enabled = true ;
579+ // Btn_Run.Enabled = true;
580580 return true ;
581581 }
582582
@@ -628,7 +628,7 @@ private async Task<bool> SetQuery(ustring text)
628628 Debug . WriteLine ( $ "{ e . Message } ", nameof ( SetQuery ) ) ;
629629 Lbl_InputInfo . Text = $ "Error: { e . Message } ";
630630 Lbl_Status2 . Text = ustring . Empty ;
631- Btn_Run . Enabled = false ;
631+ // Btn_Run.Enabled = false;
632632
633633 }
634634
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ protected BaseUploadEngine(string s)
2020 EndpointUrl = s ;
2121 }
2222
23- public static BaseUploadEngine Default { get ; } = new CatboxEngine ( ) ;
23+ public static BaseUploadEngine Default { get ; } = new LitterboxEngine ( ) ;
2424
2525 public abstract Task < Url > UploadFileAsync ( string file ) ;
2626
You can’t perform that action at this time.
0 commit comments