Skip to content

Preferences-Related Modifications

Karel Slaný requested to merge preferences-update into develop

Refactoring code related to preferences.

Added possibility to override the user settings about new version notification. Addresses issue #344 (closed) .

The application reads the registry entry DisableVersionNotification sequentially in these locations with descending priority:

  1. HKEY_LOCAL_MACHINE\Software\Policies\CZ.NIC\Datovka\
  2. HKEY_LOCAL_MACHINE\Software\CZ.NIC\Datovka\
  3. HKEY_CURRENT_USER\Software\CZ.NIC\Datovka\

If the value is set in multiple locations then the location with the highest priority is preferred.

Datovka on Windows is a 32-bit application. You may therefore need to set values in the HKEY_LOCAL_MACHINE\Software\WOW6432Node subtree such as:

  • HKEY_LOCAL_MACHINE\Software\WOW6432Node\Policies\CZ.NIC\Datovka
  • HKEY_LOCAL_MACHINE\Software\WOW6432Node\CZ.NIC\Datovka
  • HKEY_CURRENT_USER\Software\WOW6432Node\CZ.NIC\Datovka\

if you are running 64-bit Windows. For more detail see here.

The value DisableVersionNotification should preferably be an integer number with the value of 0 or 1 (or a boolean value), because it is converted to a boolean in the programme. Setting the value DisableVersionNotification overrides the values set in the user configuration.

Values of DisableVersionNotification:

  • 0/False - New version notification is enabled and cannot be disabled in the programme by the user. This value should not be used.
  • 1/True - New version notification is disabled and cannot be enabled in the programme by the user.
Edited by Karel Slaný

Merge request reports