mirror of
https://github.com/Ryubing/Ryujinx.git
synced 2026-02-20 01:26:50 -05:00
misc: Forgot about ReactiveObject
This commit is contained in:
@@ -45,13 +45,13 @@ namespace Ryujinx.UI.Common
|
||||
};
|
||||
|
||||
ConfigurationState.Instance.EnableDiscordIntegration.Event += Update;
|
||||
TitleIDs.CurrentApplicationChanged += titleId =>
|
||||
TitleIDs.CurrentApplication.Event += (_, e) =>
|
||||
{
|
||||
if (titleId)
|
||||
if (e.NewValue)
|
||||
SwitchToPlayingState(
|
||||
ApplicationLibrary.LoadAndSaveMetaData(titleId),
|
||||
ApplicationLibrary.LoadAndSaveMetaData(e.NewValue),
|
||||
Switch.Shared.Processes.ActiveApplication
|
||||
);
|
||||
);
|
||||
else
|
||||
SwitchToMainState();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user