jojobear99 / PopTrayU

Bug Tracking Repository for open source project PopTrayU
GNU General Public License v2.0
0 stars 0 forks source link

[Patch] Time format combobox don't preserve its state #81

Closed Vort closed 6 years ago

Vort commented 7 years ago
  1. Go to options
  2. On 1st tab Select 24hr time format
  3. Switch to 2nd tab
  4. Switch back to 1st tab

Needed: time format setting is preserved (stays 24hr) Observed: combobox state is resetted to AM/PM format

Here is the patch which can fix this problem:

Index: source/uFrameDefaults.pas
===================================================================
--- source/uFrameDefaults.pas   (revision 925)
+++ source/uFrameDefaults.pas   (working copy)
@@ -102,6 +102,7 @@
   Options.Busy := True;

   // options to screen
+  cmbTimeFormat.ItemIndex := Integer(Options.Use24HrTime);
   edProgram.Text := Options.MailProgram;
   edDefSound.Text := Options.DefSound;
   edIniFolder.Text := uIniSettings.GetSettingsFolder();
jojobear99 commented 6 years ago

I am accepting this patch, will be in the next version :)