|
292 | 292 | Background="#373737" |
293 | 293 | Command="{Binding CopyToClipboardCommand}" |
294 | 294 | CommandParameter="{Binding SelectedLauncher.InstallDir}" |
295 | | - ToolTip="Copy to clipboard"> |
| 295 | + ToolTip="Copy to clipboard" |
| 296 | + Visibility="{Binding SelectedLauncher.IsInstalled, Converter={StaticResource BooleanToVisibilityConverter}}"> |
296 | 297 | <Image |
297 | 298 | Width="20" |
298 | 299 | Height="20" |
|
304 | 305 | Background="#373737" |
305 | 306 | Command="{Binding OpenPathCommand}" |
306 | 307 | CommandParameter="{Binding SelectedLauncher}" |
307 | | - ToolTip="Open in explorer"> |
| 308 | + ToolTip="Open in explorer" |
| 309 | + Visibility="{Binding SelectedLauncher.IsInstalled, Converter={StaticResource BooleanToVisibilityConverter}}"> |
308 | 310 | <Image |
309 | 311 | Width="20" |
310 | 312 | Height="20" |
|
314 | 316 | </StackPanel> |
315 | 317 | <!--#endregion--> |
316 | 318 |
|
317 | | - <!--#region Executable path--> |
| 319 | + <!--#region Executable--> |
318 | 320 | <TextBlock |
319 | 321 | Grid.Row="9" |
320 | 322 | Grid.Column="0" |
321 | 323 | HorizontalAlignment="Right" |
322 | 324 | VerticalAlignment="Center" |
323 | | - Text="Executable path: " /> |
| 325 | + Text="Executable: " /> |
324 | 326 | <TextBox |
325 | 327 | Grid.Row="9" |
326 | 328 | Grid.Column="2" |
327 | 329 | VerticalAlignment="Center" |
328 | | - Text="{Binding SelectedLauncher.ExecutablePath, Mode=OneWay}" /> |
| 330 | + Text="{Binding SelectedLauncher.Executable, Mode=OneWay}" /> |
329 | 331 | <StackPanel |
330 | 332 | Grid.Row="9" |
331 | 333 | Grid.Column="4" |
|
335 | 337 | <Button |
336 | 338 | Background="#373737" |
337 | 339 | Command="{Binding CopyToClipboardCommand}" |
338 | | - CommandParameter="{Binding SelectedLauncher.ExecutablePath}" |
339 | | - ToolTip="Copy to clipboard"> |
| 340 | + CommandParameter="{Binding SelectedLauncher.Executable}" |
| 341 | + ToolTip="Copy to clipboard" |
| 342 | + Visibility="{Binding SelectedLauncher.IsInstalled, Converter={StaticResource BooleanToVisibilityConverter}}"> |
340 | 343 | <Image |
341 | 344 | Width="20" |
342 | 345 | Height="20" |
|
359 | 362 | </StackPanel> |
360 | 363 | <!--#endregion--> |
361 | 364 |
|
362 | | - <!--#region Executable--> |
363 | | - <TextBlock |
364 | | - Grid.Row="11" |
365 | | - Grid.Column="0" |
366 | | - HorizontalAlignment="Right" |
367 | | - VerticalAlignment="Center" |
368 | | - Text="Executable: " /> |
369 | | - <TextBox |
370 | | - Grid.Row="11" |
371 | | - Grid.Column="2" |
372 | | - VerticalAlignment="Center" |
373 | | - Text="{Binding SelectedLauncher.Executable, Mode=OneWay}" /> |
374 | | - <StackPanel |
375 | | - Grid.Row="11" |
376 | | - Grid.Column="4" |
377 | | - HorizontalAlignment="Left" |
378 | | - VerticalAlignment="Center" |
379 | | - Orientation="Horizontal"> |
380 | | - <Button |
381 | | - Background="#373737" |
382 | | - Command="{Binding CopyToClipboardCommand}" |
383 | | - CommandParameter="{Binding SelectedLauncher.Executable}" |
384 | | - ToolTip="Copy to clipboard"> |
385 | | - <Image |
386 | | - Width="20" |
387 | | - Height="20" |
388 | | - Margin="2" |
389 | | - Source="/Resources/copy-white.png" /> |
390 | | - </Button> |
391 | | - </StackPanel> |
392 | | - <!--#endregion--> |
393 | | - |
394 | 365 | <!--#region IsInstalled--> |
395 | 366 | <TextBlock |
396 | | - Grid.Row="13" |
| 367 | + Grid.Row="11" |
397 | 368 | Grid.Column="0" |
398 | 369 | HorizontalAlignment="Right" |
399 | 370 | VerticalAlignment="Center" |
400 | 371 | Text="Is installed: " /> |
401 | 372 | <Image |
402 | | - Grid.Row="13" |
| 373 | + Grid.Row="11" |
403 | 374 | Grid.Column="2" |
404 | 375 | Width="24" |
405 | 376 | Height="24" |
|
409 | 380 |
|
410 | 381 | <!--#region IsRunning--> |
411 | 382 | <TextBlock |
412 | | - Grid.Row="15" |
| 383 | + Grid.Row="13" |
413 | 384 | Grid.Column="0" |
414 | 385 | HorizontalAlignment="Right" |
415 | 386 | VerticalAlignment="Center" |
416 | 387 | Text="Is running: " /> |
417 | 388 | <Image |
418 | | - Grid.Row="15" |
| 389 | + Grid.Row="13" |
419 | 390 | Grid.Column="2" |
420 | 391 | Width="24" |
421 | 392 | Height="24" |
422 | 393 | HorizontalAlignment="Left" |
423 | 394 | Source="{Binding IsRunningLogo}" /> |
424 | 395 | <StackPanel |
425 | | - Grid.Row="15" |
| 396 | + Grid.Row="13" |
426 | 397 | Grid.Column="4" |
427 | 398 | HorizontalAlignment="Left" |
428 | 399 | VerticalAlignment="Center" |
429 | 400 | Orientation="Horizontal"> |
430 | 401 | <Button |
431 | 402 | Background="#373737" |
432 | 403 | Command="{Binding RefreshLauncherIsRunningCommand}" |
433 | | - ToolTip="Refresh"> |
| 404 | + ToolTip="Refresh" |
| 405 | + Visibility="{Binding SelectedLauncher.IsInstalled, Converter={StaticResource BooleanToVisibilityConverter}}"> |
434 | 406 | <Image |
435 | 407 | Width="20" |
436 | 408 | Height="20" |
|
442 | 414 |
|
443 | 415 | <!--#region Installed games--> |
444 | 416 | <TextBlock |
445 | | - Grid.Row="17" |
| 417 | + Grid.Row="15" |
446 | 418 | Grid.Column="0" |
447 | 419 | HorizontalAlignment="Right" |
448 | 420 | VerticalAlignment="Center" |
449 | 421 | Text="Installed games: " /> |
450 | 422 | <TextBlock |
451 | | - Grid.Row="17" |
| 423 | + Grid.Row="15" |
452 | 424 | Grid.Column="2" |
453 | 425 | HorizontalAlignment="Left" |
454 | 426 | VerticalAlignment="Center" |
|
0 commit comments