mirror of
https://github.com/grocy/grocy.git
synced 2025-04-28 17:23:56 +00:00
Make Quagga2 setting "numOfWorkers" adjustable (closes #713)
This commit is contained in:
parent
45d96cb60f
commit
f36d9c46ed
@ -41,10 +41,11 @@
|
||||
### General & other improvements/fixes
|
||||
- Optimized that sometimes the corresponding form was not validated when selecting a date from the datetimepicker
|
||||
- New `config.php` setting `FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_FIELD_NUMBER_PAD` which activates the number pad for best-before-date fields on (supported) mobile browsers (useful because of [shorthands](https://github.com/grocy/grocy#input-shorthands-for-date-fields)) (defaults to `true`) (thanks @Mik-)
|
||||
- Enhancements for the camera barcode scanner (thanks @Mik- for the work on improving the torch capabilities)
|
||||
- Enhancements for the camera barcode scanner (thanks @Mik- for the work on improving the torch capabilities & CSS)
|
||||
- Replaced [QuaggaJS](https://github.com/serratus/quaggaJS) (seems to be unmaintained) by [Quagga2](https://github.com/ericblade/quagga2)
|
||||
- The light button only displayed when the device has a flash light
|
||||
- New `config.php` setting `FEATURE_FLAG_AUTO_TORCH_ON_WITH_CAMERA` to always enable the flash light automatically
|
||||
- New user setting `quagga2_numofworkers` (`config.php`) to make the Quagga2 setting "numOfWorkers" adjustable (defaults to `4`)
|
||||
- Various display/CSS improvements
|
||||
- Prerequisites (PHP extensions, critical files/folders) will now be checked and properly reported if there are problems (thanks @Forceu)
|
||||
- Improved the the overview pages on mobile devices (main column was hidden) (thanks @Mik-)
|
||||
|
@ -125,6 +125,9 @@ DefaultUserSetting('auto_reload_on_db_change', true);
|
||||
# Show a clock in the header next to the logo or not
|
||||
DefaultUserSetting('show_clock_in_header', false);
|
||||
|
||||
# Component configuration
|
||||
DefaultUserSetting('quagga2_numofworkers', 4);
|
||||
|
||||
|
||||
# Feature flags
|
||||
# grocy was initially about "stock management for your household", many other things
|
||||
|
@ -69,7 +69,7 @@ Grocy.Components.BarcodeScanner.StartScanning = function()
|
||||
}
|
||||
}
|
||||
},
|
||||
numOfWorkers: 2,
|
||||
numOfWorkers: Grocy.UserSettings.quagga2_numofworkers,
|
||||
frequency: 10,
|
||||
decoder: {
|
||||
readers: [
|
||||
|
Loading…
x
Reference in New Issue
Block a user