mirror of
https://github.com/EpicMorg/UniversalValveToolbox.git
synced 2025-05-07 20:29:28 +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 UniversalValveToolbox.Utils;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
|
using EpicMorg.SteamPathsLib;
|
||||||
|
|
||||||
namespace UniversalValveToolbox {
|
namespace UniversalValveToolbox {
|
||||||
public partial class FormAddons : Form {
|
public partial class FormAddons : Form {
|
||||||
@ -29,7 +30,7 @@ namespace UniversalValveToolbox {
|
|||||||
.Cast<DictionaryEntry>()
|
.Cast<DictionaryEntry>()
|
||||||
.ToArray();
|
.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();
|
UpdateAddonsComboBox();
|
||||||
UpdateAddonCategoryComboBox();
|
UpdateAddonCategoryComboBox();
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
using kasthack.binding.wf;
|
using EpicMorg.SteamPathsLib;
|
||||||
|
using kasthack.binding.wf;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
@ -20,7 +21,7 @@ namespace UniversalValveToolbox {
|
|||||||
public FormProjects() {
|
public FormProjects() {
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
model = new FormProjectViewModel(dataProvider.Projects, dataProvider.Engines);
|
model = new FormProjectViewModel(dataProvider.Projects, dataProvider.Engines.Where(engine => SteamPathsUtil.GetSteamAppDataById(engine.Appid) != null).ToArray());
|
||||||
|
|
||||||
UpdateComboBoxProject();
|
UpdateComboBoxProject();
|
||||||
UpdateComboBoxEngine();
|
UpdateComboBoxEngine();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user