Florian Stinglmayr
f88047718a
This never worked right, and it slowed down the tool massively on start up. And now that automatic objective detection works quite well it is no longer really needed.
39 lines
1.2 KiB
C#
39 lines
1.2 KiB
C#
using System.ComponentModel;
|
|
|
|
namespace EliteBGS.Util {
|
|
public class AppConfig : INotifyPropertyChanged {
|
|
private static readonly string default_journal_location = "%UserProfile%\\Saved Games\\Frontier Developments\\Elite Dangerous";
|
|
private string journal_location = default_journal_location;
|
|
private string lastdiscordlog;
|
|
|
|
public string DefaultJournalLocation => default_journal_location;
|
|
|
|
public string LastUsedDiscordTemplate {
|
|
get => lastdiscordlog;
|
|
set {
|
|
lastdiscordlog = value;
|
|
FirePropertyChanged("LastUsedDiscordTemplate");
|
|
}
|
|
}
|
|
|
|
public string JournalLocation {
|
|
get {
|
|
if (journal_location == null) {
|
|
return DefaultJournalLocation;
|
|
}
|
|
return journal_location;
|
|
}
|
|
set {
|
|
journal_location = value;
|
|
FirePropertyChanged("JournalLocation");
|
|
}
|
|
}
|
|
|
|
private void FirePropertyChanged(string property) {
|
|
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(property));
|
|
}
|
|
|
|
public event PropertyChangedEventHandler PropertyChanged;
|
|
}
|
|
}
|