mirror of
https://github.com/gnosygnu/xowa.git
synced 2024-10-27 20:34:16 +00:00
Updater: Show error message after failing to download
This commit is contained in:
parent
c9d1193e7f
commit
55f148480c
@ -32,8 +32,8 @@ public class Xoa_app_ {
|
||||
}
|
||||
}
|
||||
public static final String Name = "xowa";
|
||||
public static final int Version_id = 512;
|
||||
public static final String Version = "4.0.3.1702"; // RELEASE:2017-01-03 20:30
|
||||
public static final int Version_id = 513;
|
||||
public static final String Version = "4.1.0.1702"; // RELEASE:2017-01-03 20:30
|
||||
public static String Build_date = "2012-12-30 00:00:00";
|
||||
public static String Build_date_fmt = "yyyy-MM-dd HH:mm:ss";
|
||||
public static String Op_sys_str;
|
||||
|
@ -30,6 +30,7 @@ public class Xojs_wkr__download extends Xojs_wkr__base {
|
||||
public long Src_len() {return src_len;} private final long src_len;
|
||||
@Override protected void Exec_run() {
|
||||
Http_download_wkr wkr = Http_download_wkr_.Proto.Make_new();
|
||||
wkr.Exec(this, src, trg, src_len);
|
||||
if (wkr.Exec(this, src, trg, src_len) != gplx.core.progs.Gfo_prog_ui_.Status__done)
|
||||
this.Cbk_mgr().Send_json(this.Cbk_trg(), "xo.app_updater.write_status", gplx.core.gfobjs.Gfobj_nde.New().Add_str("msg", "failed to download update: " + wkr.Fail_msg()));
|
||||
}
|
||||
}
|
||||
|
@ -88,6 +88,7 @@ public class Xoa_manifest_view extends JFrame implements Gfo_invk {
|
||||
run_xowa_lbl.addMouseListener(new Swing_mouse_adapter(Gfo_invk_cmd.New_by_key(this, Invk__run_xowa)));
|
||||
}
|
||||
public void Run_xowa() {
|
||||
this.Append("running: " + run_xowa_cmd);
|
||||
Runtime_.Exec(run_xowa_cmd);
|
||||
System_.Exit();
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
update Command-Line/dumps[D[D[D[D
|
||||
version_updater description 2
|
||||
|
Loading…
Reference in New Issue
Block a user