File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -258,10 +258,11 @@ impl Application for AppModel {
258258 . update ( InstallFromFileMessage :: FileSelected ( message) )
259259 . map ( cosmic:: app:: Message :: App ) ,
260260 ) ,
261- Message :: Cancelled => {
262- log:: info!( "Not implemented yet" ) ;
263- //TODO show info message (a toast?)
264- }
261+ Message :: Cancelled => commands. push (
262+ self . install_from_file
263+ . update ( InstallFromFileMessage :: Cancelled )
264+ . map ( cosmic:: app:: Message :: App ) ,
265+ ) ,
265266 Message :: OpenError ( arc_err) => {
266267 log:: error!( "Error happened: {}" , arc_err) ;
267268 }
Original file line number Diff line number Diff line change @@ -221,7 +221,10 @@ impl InstallFromFile {
221221 InstallFromFileMessage :: Cancelled => {
222222 self . loading = false ;
223223 }
224- InstallFromFileMessage :: OpenError ( arc) => todo ! ( ) ,
224+ InstallFromFileMessage :: OpenError ( arc) => {
225+ //TODO sho error message
226+ self . loading = false ;
227+ } ,
225228 InstallFromFileMessage :: InstallationSuccessful => {
226229 self . loading = false ;
227230 }
You can’t perform that action at this time.
0 commit comments