prefs: Remove separate checkbox for default open encoding
commit3b10790a41d570bb52cd1a40952914dd3641a743
authorColomban Wendling <ban@herbesfolles.org>
Mon, 11 Dec 2023 20:52:04 +0000 (11 21:52 +0100)
committerColomban Wendling <ban@herbesfolles.org>
Tue, 12 Dec 2023 23:36:00 +0000 (13 00:36 +0100)
tree853b537453d3f2d3248c6f43698a181196210509
parent512e88df8d97284c191459450bce4dd7877b9c2b
prefs: Remove separate checkbox for default open encoding

Show and use the "Detect from file" combo member instead of having a
dedicated checkbox for this.

I don't see the value of having a separate checkbox for this:
* We don't save two values anyway, so the value when detection is
  enabled is artificial;
* It makes the UI more complex by having more controls;
* It takes screen estate;
* We already have the code for adding a "Detect from file" in the combo
  box.
data/geany.glade
doc/geany.txt
src/prefs.c