1
0
mirror of https://github.com/gnosygnu/xowa.git synced 2026-03-02 03:49:30 +00:00

Cfg: Add dynamic default text feature

This commit is contained in:
gnosygnu
2016-12-23 10:18:01 -05:00
parent d380278390
commit 3177979558
4 changed files with 27 additions and 31 deletions

View File

@@ -28,7 +28,6 @@ public class Xoi_firefox_installer implements Gfo_invk {
trg_xpi_package = trg_xpi.OwnerDir().GenSubDir("package");
Xoa_fsys_eval cmd_eval = app.Url_cmd_eval();
Process_adp.ini_(this, app.Usr_dlg(), program, cmd_eval, Process_adp.Run_mode_async, 0, "firefox", "\"~{url}\"", "url");
app.Cfg().Bind_many_app(this, Cfg__firefox_cmd);
}
public void Install_via_process() {
Generate();
@@ -59,10 +58,7 @@ public class Xoi_firefox_installer implements Gfo_invk {
}
public Object Invk(GfsCtx ctx, int ikey, String k, GfoMsg m) {
if (ctx.Match(k, Invk_install)) Install_via_process();
else if (ctx.Match(k, Cfg__firefox_cmd)) gplx.xowa.apps.progs.Xoa_prog_mgr.Init_cmd(m.ReadStr("v"), program);
else return Gfo_invk_.Rv_unhandled;
return this;
} private static final String Invk_install = "install";
private static final String Cfg__firefox_cmd = "xowa.addon.xowa_viewer.firefox";
}