1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-05-26 02:34:05 +02:00

Fix source code indentation problems

This commit is contained in:
chylex 2021-12-17 00:58:38 +01:00
parent d9782f554f
commit b18cd2658c
Signed by: chylex
GPG Key ID: 4DE42C8F19A80548
3 changed files with 43 additions and 42 deletions
Management

View File

@ -37,14 +37,15 @@ public void Launch(string videoUrl, string tweetUrl, string username) {
DuplexPipe.Server pipe = DuplexPipe.CreateServer();
pipe.DataIn += pipe_DataIn;
Process process;
if ((process = Process.Start(new ProcessStartInfo {
ProcessStartInfo startInfo = new ProcessStartInfo {
FileName = Path.Combine(Program.ProgramPath, "TweetDuck.Video.exe"),
Arguments = $"{owner.Handle} {(int) Math.Floor(100F * owner.GetDPIScale())} {Config.VideoPlayerVolume} \"{videoUrl}\" \"{pipe.GenerateToken()}\"",
UseShellExecute = false,
RedirectStandardOutput = true
})) != null) {
};
Process process;
if ((process = Process.Start(startInfo)) != null) {
currentInstance = new Instance(process, pipe, videoUrl, tweetUrl, username);
process.EnableRaisingEvents = true;