Skip to content

Commit

Permalink
open with, use commandline
Browse files Browse the repository at this point in the history
  • Loading branch information
riderkick committed Jun 6, 2015
1 parent e6dad84 commit 534f04d
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions mangadownloader/forms/frmMain.pas
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,7 @@ procedure TMainForm.itMonitorTimer(Sender: TObject);
{$ELSE}
RunExternalProcess(fmdDirectory + 'old_updater.exe',
['-x', '-r', '3', '-a', FUpdateURL, '-l', Application.ExeName,
'--lang', uTranslation.LastSelected], True, True);
'--lang', uTranslation.LastSelected]);
{$ENDIF}
Self.Close;
end;
Expand Down Expand Up @@ -2582,12 +2582,7 @@ procedure TMainForm.miFavoritesOpenWithClick(Sender: TObject);
begin
s := StringReplace(s, '%PATH%', fd, [rfReplaceAll]);
s := StringReplace(s, '%FCHAPTER%', f, [rfReplaceAll]);
with TProcessUTF8.Create(nil) do try
CommandLine := s;
Execute;
finally
Free;
end;
RunExternalProcess(s, True, True);
end
else
OpenDocument(fd + f);
Expand Down Expand Up @@ -2645,12 +2640,7 @@ procedure TMainForm.miDownloadOpenWithClick(Sender: TObject);
begin
s := StringReplace(s, '%PATH%', fd, [rfReplaceAll]);
s := StringReplace(s, '%FCHAPTER%', f, [rfReplaceAll]);
with TProcessUTF8.Create(nil) do try
CommandLine := s;
Execute;
finally
Free;
end;
RunExternalProcess(s, True, True);
end
else
OpenDocument(fd + f);
Expand Down

0 comments on commit 534f04d

Please sign in to comment.