Skip to content

Commit

Permalink
Scopes off by default, fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperDisk committed Feb 5, 2023
1 parent 4e189dc commit 0c1123a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/hugesettings.pas
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ constructor TTrackerSettings.Create;
SettingsFile := TINIFile.Create('options.ini');

FPatternEditorFontSize := SettingsFile.ReadInteger('hUGETracker', 'fontsize', 12);
FUseScopes := SettingsFile.ReadBool('hUGETracker', 'ScopesOn', True);
FUseScopes := SettingsFile.ReadBool('hUGETracker', 'ScopesOn', False);
FUseCustomKeymap := SettingsFile.ReadBool('hUGETracker', 'CustomKeymap', False);
FPreviewWhenPlacing := SettingsFile.ReadBool('hUGETracker', 'PreviewWhenPlacing', True);
FPreviewWhenBumping := SettingsFile.ReadBool('hUGETracker', 'PreviewWhenBumping', False);
Expand Down
11 changes: 4 additions & 7 deletions src/tracker.pas
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,6 @@ TfrmTracker = class(TForm)
Playing: Boolean;
LoadingFile: Boolean;
SaveSucceeded: Boolean;
ScopesOn: Boolean;

WaveInstrumentsNode,
NoiseInstrumentsNode,
Expand Down Expand Up @@ -1496,8 +1495,8 @@ procedure TfrmTracker.FormCreate(Sender: TObject);
StartPlayback;

// Start the Oscilloscope repaint timer
OscilloscopeUpdateTimer.Enabled := ScopesOn;
ScopesPanel.Visible := ScopesOn;
OscilloscopeUpdateTimer.Enabled := TrackerSettings.UseScopes;
ScopesPanel.Visible := TrackerSettings.UseScopes;

// Switch to general tab sheet
PageControl1.ActivePageIndex := 0;
Expand Down Expand Up @@ -2365,10 +2364,8 @@ procedure TfrmTracker.OptionsMenuItemClick(Sender: TObject);

SubpatternGroupBox.Width := RowNumberStringGrid1.Width + TableGrid.Width + 10;

ScopesOn := TrackerSettings.UseScopes;

OscilloscopeUpdateTimer.Enabled := ScopesOn;
ScopesPanel.Visible := ScopesOn;
OscilloscopeUpdateTimer.Enabled := TrackerSettings.UseScopes;
ScopesPanel.Visible := TrackerSettings.UseScopes;

RecreateRowNumbers;
TrackerGrid.Invalidate;
Expand Down

0 comments on commit 0c1123a

Please sign in to comment.