From dc775f37bfec61bc939d6fd3e481aa14bcb12cf7 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Sun, 14 Jan 2007 18:44:07 +0000 Subject: [PATCH] * remove db2, sqlserver and sybase files and reference * added silent setup support, run setup without x11 --- looks/src/org/compiere/util/Ini.java | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/looks/src/org/compiere/util/Ini.java b/looks/src/org/compiere/util/Ini.java index e003dfe458..eb15216dac 100644 --- a/looks/src/org/compiere/util/Ini.java +++ b/looks/src/org/compiere/util/Ini.java @@ -262,8 +262,9 @@ public final class Ini implements Serializable { log.config(filename); firstTime = true; - if (!IniDialog.accept()) - System.exit(-1); + if (isShowLicenseDialog()) + if (!IniDialog.accept()) + System.exit(-1); } // Check/set properties defaults @@ -474,6 +475,8 @@ public final class Ini implements Serializable private static boolean s_client = true; /** IsClient Internal marker */ private static boolean s_loaded = false; + /** Show license dialog for first time **/ + private static boolean s_license_dialog = true; /** * Are we in Client Mode ? @@ -492,6 +495,24 @@ public final class Ini implements Serializable { s_client = client; } // setClient + + /** + * Set show license dialog for new setup + * @param b + */ + public static void setShowLicenseDialog(boolean b) + { + s_license_dialog = b; + } + + /** + * Is show license dialog for new setup + * @return boolean + */ + public static boolean isShowLicenseDialog() + { + return s_license_dialog; + } /** * Are the properties loaded?