• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ParadoxGameConverters / Fronter.NET / 17879782487

20 Sep 2025 12:23PM UTC coverage: 19.243% (+0.2%) from 19.079%
17879782487

Pull #426

github

web-flow
Merge 127dace03 into 07919407c
Pull Request #426: Target playset selection

100 of 702 branches covered (14.25%)

Branch coverage included in aggregate %.

17 of 90 new or added lines in 9 files covered. (18.89%)

4 existing lines in 1 file now uncovered.

571 of 2785 relevant lines covered (20.5%)

9.23 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

63.16
/Fronter.NET/ViewModels/TargetPlaysetPickerViewModel.cs
1
using DynamicData;
2
using DynamicData.Binding;
3
using Fronter.Models.Configuration;
4
using Fronter.Models.Database;
5
using System;
6
using System.Collections.ObjectModel;
7

8
namespace Fronter.ViewModels;
9

10
/// <summary>
11
///     The TargetPlaysetPickerViewModel lets the user select paths to various stuff the converter needs to know where to find.
12
/// </summary>
13
internal class TargetPlaysetPickerViewModel : ViewModelBase {
14
        private Config config;
15
        
16
        public TargetPlaysetPickerViewModel(Config config) {
4✔
17
                this.config = config;
2✔
18
                
19
                config.AutoLocatedPlaysets.ToObservableChangeSet()
2✔
20
                        .Bind(out targetPlaysets)
2✔
21
                        .Subscribe();
2✔
22

23
                if (!config.TargetPlaysetSelectionEnabled) {
4✔
24
                        TabDisabled = true;
2✔
25
                }
2✔
26
        }
2✔
27

28
        private readonly ReadOnlyObservableCollection<Playset> targetPlaysets;
NEW
29
        public ReadOnlyObservableCollection<Playset> TargetPlaysets => targetPlaysets;
×
30

31
        public bool TabDisabled { get; } = false;
2✔
32

NEW
33
        public void ReloadPlaysets() {
×
NEW
34
                config.SelectedPlayset = null;
×
NEW
35
                config.AutoLocatePlaysets();
×
NEW
36
        }
×
37
        
38
        public Playset? SelectedPlayset {
NEW
39
                get => config.SelectedPlayset;
×
NEW
40
                set => config.SelectedPlayset = value;
×
41
        }
42
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc