Ignore:
Timestamp:
Aug 8, 2016, 1:41:25 PM (8 years ago)
Author:
chronos
Message:
  • Modified: Non-visual code moved from FormMain to Core data module.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormSettings.pas

    r75 r86  
    4040
    4141uses
    42   UFormMain;
     42  UFormMain, UCore;
    4343
    4444{ TFormSettings }
     
    6464procedure TFormSettings.Load;
    6565begin
    66   CheckBoxAlwaysOnTop.Checked := FormMain.AlwaysOnTop;
    67   CheckBoxStartOnLogon.Checked := FormMain.StartOnLogon;
    68   CheckBoxStartMinimizedToTray.Checked := FormMain.StartMinimizedToTray;
     66  CheckBoxAlwaysOnTop.Checked := Core.AlwaysOnTop;
     67  CheckBoxStartOnLogon.Checked := Core.StartOnLogon;
     68  CheckBoxStartMinimizedToTray.Checked := Core.StartMinimizedToTray;
    6969  UpdateInterface;
    7070end;
     
    7272procedure TFormSettings.Save;
    7373begin
    74   FormMain.AlwaysOnTop := CheckBoxAlwaysOnTop.Checked;
    75   FormMain.StartOnLogon := CheckBoxStartOnLogon.Checked;
    76   FormMain.StartMinimizedToTray := CheckBoxStartMinimizedToTray.Checked;
     74  Core.AlwaysOnTop := CheckBoxAlwaysOnTop.Checked;
     75  Core.StartOnLogon := CheckBoxStartOnLogon.Checked;
     76  Core.StartMinimizedToTray := CheckBoxStartMinimizedToTray.Checked;
    7777end;
    7878
Note: See TracChangeset for help on using the changeset viewer.