Skip to content

Commit

Permalink
fix cocoa splash hide, build scripts updated
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbannon committed Dec 13, 2018
1 parent a508965 commit 41d2c75
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package/mk_cocoa_dmg.bash
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ WORK=source_folder
CONTENTS="$WORK/""$PRODUCT".app/Contents
VERSION=`cat version`
LAZ_DIR=fixes_2_0
MANUALS="recover.note tomdroid.note"
MANUALS="recover.note tomdroid.note sync-ng.note tomboy-ng.note"


cd ../"$PRODUCT"
Expand Down
2 changes: 1 addition & 1 deletion package/mk_dmg.bash
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ PRODUCT=tomboy-ng
WORK=source_folder
CONTENTS="$WORK/""$PRODUCT".app/Contents
VERSION=`cat version`
MANUALS="recover.note tomdroid.note"
MANUALS="recover.note tomdroid.note sync-ng.note tomboy-ng.note"

cd ../tomboy-ng
TOMBOY_NG_VER="$VERSION" lazbuild -B --cpu="i386" --build-mode=Release --os="darwin" Tomboy_NG.lpi
Expand Down
7 changes: 6 additions & 1 deletion tomboy-ng/mainunit.pas
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ procedure TMainForm.FormShow(Sender: TObject);
exit();
end;
if Application.HasOption('no-splash') or (not Sett.CheckShowSplash.Checked) then begin
if AllowDismiss then hide;
if AllowDismiss then ButtonDismissClick(Self);
end;
Left := 10;
Top := 40;
Expand Down Expand Up @@ -369,7 +369,12 @@ procedure TMainForm.CheckStatus();

procedure TMainForm.ButtonDismissClick(Sender: TObject);
begin
{$ifdef LCLCOCOA}
width := 0;
height := 0;
{$else}
hide();
{$endif}
end;

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

0 comments on commit 41d2c75

Please sign in to comment.