Browse Source

small fix.

development
jens 5 months ago
parent
commit
9b9c1c2323
  1. 45
      ShoppingList/src/com/jens/rhasspy/shoppinglist/Start.java

45
ShoppingList/src/com/jens/rhasspy/shoppinglist/Start.java

@ -128,50 +128,9 @@ public class Start
DatabaseHandler.getInstance().disconnect();
System.exit(0);
}
exitWithError(Settings.languageBlock.get("productNotFound") + " " + productName);
else
exitWithError(Settings.languageBlock.get("couldNotRemoveProdFromList") + " " + entry.toString());
// for(ShoppingListEntry entry : list.getEntries())
// {
// if(entry.getProduct().equals(p))
// {
// if(entry.delete())
// {
// DatabaseHandler.getInstance().disconnect();
// System.exit(0);
// }
// else
// Miscellaneous.logEvent(Settings.languageBlock.get("couldNotRemoveProdFromList") + " " + productName, 2);
// }
// }
// else
// exitWithError(Settings.languageBlock.get("couldNotRemoveProdFromList") + " " + entry.toString());
// for(ShoppingListEntry entry : list.getEntries())
// {
// if(entry.getProduct().equals(p))
// {
// if(amount > 0 && u != null && !u.isDummy())
// {
// /*
// * Amount and unit specified. Adjust entries that may exist.
// */
// }
// else
// {
// /*
// * No amount unit or unit specified. Delete all existing entries
// * of that product from the list.
// */
// if(entry.delete())
// {
// DatabaseHandler.getInstance().disconnect();
// System.exit(0);
// }
// else
// Miscellaneous.logEvent(Settings.languageBlock.get("couldNotRemoveProdFromList") + " " + productName, 2);
// }
// }
// }
// If it wasn't on the list - why care?
DatabaseHandler.getInstance().disconnect();
System.exit(0);

Loading…
Cancel
Save