mirror of
https://github.com/moparisthebest/Simba
synced 2024-11-22 01:02:17 -05:00
Simba: Updater only shows when required.
If there's no update, it won't show.
This commit is contained in:
parent
ff7228ba70
commit
1374e2be21
@ -883,7 +883,10 @@ end;
|
|||||||
|
|
||||||
procedure TSimbaForm.UpdateMenuButtonClick(Sender: TObject);
|
procedure TSimbaForm.UpdateMenuButtonClick(Sender: TObject);
|
||||||
begin
|
begin
|
||||||
SimbaUpdateForm.ShowModal;
|
if SimbaUpdateForm.CanUpdate then
|
||||||
|
SimbaUpdateForm.ShowModal
|
||||||
|
else
|
||||||
|
ShowMessage('No Updates Available!');
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure ClearDebug;
|
procedure ClearDebug;
|
||||||
|
@ -162,7 +162,7 @@ begin
|
|||||||
Self.DownloadSpeed.Visible := false;
|
Self.DownloadSpeed.Visible := false;
|
||||||
if not CanUpdate then
|
if not CanUpdate then
|
||||||
begin
|
begin
|
||||||
ShowMessage('No Updates Available!');
|
//ShowMessage('No Updates Available!');
|
||||||
Self.UpdateLog.Lines.Add('No Updates Available!');
|
Self.UpdateLog.Lines.Add('No Updates Available!');
|
||||||
Self.UpdateButton.Enabled := False;
|
Self.UpdateButton.Enabled := False;
|
||||||
end else
|
end else
|
||||||
|
Loading…
Reference in New Issue
Block a user