mirror of
https://github.com/EpicMorg/UniversalValveToolbox.git
synced 2025-01-13 15:18:14 +03:00
fix: hide unavalible engines from another windows
This commit is contained in:
parent
89efcb86a9
commit
f3bf6dcb48
@ -9,6 +9,7 @@ using System.Collections.Generic;
|
||||
using UniversalValveToolbox.Utils;
|
||||
using System.Globalization;
|
||||
using System.Collections;
|
||||
using EpicMorg.SteamPathsLib;
|
||||
|
||||
namespace UniversalValveToolbox {
|
||||
public partial class FormAddons : Form {
|
||||
@ -29,7 +30,7 @@ namespace UniversalValveToolbox {
|
||||
.Cast<DictionaryEntry>()
|
||||
.ToArray();
|
||||
|
||||
model = new FormAddonViewModel(dataProvider.Addons, dataProvider.Engines, categories);
|
||||
model = new FormAddonViewModel(dataProvider.Addons, dataProvider.Engines.Where(engine => SteamPathsUtil.GetSteamAppDataById(engine.Appid) != null).ToArray(), categories);
|
||||
|
||||
UpdateAddonsComboBox();
|
||||
UpdateAddonCategoryComboBox();
|
||||
|
@ -1,4 +1,5 @@
|
||||
using kasthack.binding.wf;
|
||||
using EpicMorg.SteamPathsLib;
|
||||
using kasthack.binding.wf;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
@ -19,8 +20,8 @@ namespace UniversalValveToolbox {
|
||||
|
||||
public FormProjects() {
|
||||
InitializeComponent();
|
||||
|
||||
model = new FormProjectViewModel(dataProvider.Projects, dataProvider.Engines);
|
||||
|
||||
model = new FormProjectViewModel(dataProvider.Projects, dataProvider.Engines.Where(engine => SteamPathsUtil.GetSteamAppDataById(engine.Appid) != null).ToArray());
|
||||
|
||||
UpdateComboBoxProject();
|
||||
UpdateComboBoxEngine();
|
||||
|
Loading…
x
Reference in New Issue
Block a user