Skip to content

Commit

Permalink
dont all a new note until notes dir set. This is v0.15
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbannon committed May 20, 2018
1 parent 450f73f commit b590d70
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tomboy-ng/mainunit.pas
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ procedure TMainForm.CheckStatus();
ButtonDismiss.Enabled := AllowDismiss;
if UseTrayMenu then
TrayIcon.Show;

end;
end;

Expand Down Expand Up @@ -256,7 +257,9 @@ procedure TMainForm.ButtonConfigClick(Sender: TObject);

procedure TMainForm.MMNewNoteClick(Sender: TObject);
begin
SearchForm.OpenNote();
if (Sett.NoteDirectory = '') then
ShowMessage('Please setup a notes directory first')
else SearchForm.OpenNote();
end;

procedure TMainForm.MMSettingsClick(Sender: TObject);
Expand Down

0 comments on commit b590d70

Please sign in to comment.