Skip to content

Commit

Permalink
fix issue with radar not showing data
Browse files Browse the repository at this point in the history
  • Loading branch information
Icehunter committed Jun 4, 2021
1 parent 9385811 commit 0bb148c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion XIVRADAR/Windows/RadarWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ public string WindowTitle {
public event PropertyChangedEventHandler? PropertyChanged;

private void EventHost_OnNewCurrentUser(object sender, MemoryHandler memoryhandler, ActorItem eventdata) {
if (memoryhandler.Configuration.ProcessModel.ProcessID == this._processID) {
if (memoryhandler.Configuration.ProcessModel.ProcessID != this._processID) {
return;
}

if (eventdata is not null) {
this.WindowTitle = eventdata.Name;
}
}
Expand Down
6 changes: 5 additions & 1 deletion XIVRADAR/Windows/TransparentRadarWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ protected virtual bool SetProperty<T>(ref T member, T value, [CallerMemberName]
}

private void EventHost_OnNewCurrentUser(object sender, MemoryHandler memoryhandler, ActorItem eventdata) {
if (memoryhandler.Configuration.ProcessModel.ProcessID == this._processID) {
if (memoryhandler.Configuration.ProcessModel.ProcessID != this._processID) {
return;
}

if (eventdata is not null) {
this.WindowTitle = eventdata.Name;
}
}
Expand Down
2 changes: 1 addition & 1 deletion XIVRADAR/XIVRADAR.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<Company>SyndicatedLife</Company>
<Copyright>Copyright © 2007 - 2021 Ryan Wilson</Copyright>
<Version>1.0.0</Version>
<FileVersion>1.0.0.0</FileVersion>
<FileVersion>1.0.0.1</FileVersion>
<ApplicationManifest>app.manifest</ApplicationManifest>
</PropertyGroup>

Expand Down

0 comments on commit 0bb148c

Please sign in to comment.