Skip to content

Commit

Permalink
don't enable button addtofavorite before it loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
riderkick committed Jun 10, 2015
1 parent bcf96e5 commit 5889a30
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions mangadownloader/forms/frmMain.pas
Original file line number Diff line number Diff line change
Expand Up @@ -2480,6 +2480,7 @@ procedure TMainForm.miMangaListViewInfosClick(Sender: TObject);
if (not vtMangaList.Focused) or (vtMangaList.SelectedCount = 0) then
Exit;
btDownload.Enabled := False;
btAddToFavorites.Enabled := False;
pcMain.ActivePage := tsInformation;
imCover.Picture.Assign(nil);
rmInformation.Clear;
Expand Down Expand Up @@ -2535,12 +2536,6 @@ procedure TMainForm.miMangaListViewInfosClick(Sender: TObject);
end;

btReadOnline.Enabled := (link <> '');
btAddToFavorites.Enabled := not SitesWithoutFavorites(website);

//check if manga already in FavoriteManager list
if btAddToFavorites.Enabled and (Sender = vtMangaList) and
(FavoriteManager.Count > 0) then
btAddToFavorites.Enabled := not FavoriteManager.IsMangaExist(title, website);
end;

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

0 comments on commit 5889a30

Please sign in to comment.