From 3f8e1a69eccc6f862541e2bcd691d6ac65c11a81 Mon Sep 17 00:00:00 2001 From: avikpl1911 Date: Thu, 8 Feb 2024 09:16:53 +0530 Subject: [PATCH] rough implementiaon --- src/Ryujinx/Ui/Windows/SettingsWindow.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Ryujinx/Ui/Windows/SettingsWindow.cs b/src/Ryujinx/Ui/Windows/SettingsWindow.cs index 7e2c594a7..9bebc3680 100644 --- a/src/Ryujinx/Ui/Windows/SettingsWindow.cs +++ b/src/Ryujinx/Ui/Windows/SettingsWindow.cs @@ -609,7 +609,7 @@ namespace Ryujinx.Ui.Windows for (int j = 0; j < _gameDirsBoxStore1.IterNChildren(); j++) { - gameDirs.Add((string)_gameDirsBoxStore1.GetValue(treeIter1, 0)); + ExcludegameDirs.Add((string)_gameDirsBoxStore1.GetValue(treeIter1, 0)); _gameDirsBoxStore1.IterNext(ref treeIter1); } @@ -776,6 +776,7 @@ namespace Ryujinx.Ui.Windows Console.WriteLine("here"); _include_exclude_dir.Label = "exclude"; _includeorexlude = IncludeorExclude.Exclude; + _gameDirsBox1.Selection.UnselectAll(); } private void onRowActivated1(object sender, ButtonReleaseEventArgs args) @@ -783,6 +784,7 @@ namespace Ryujinx.Ui.Windows Console.WriteLine("here"); _include_exclude_dir.Label = "include"; _includeorexlude = IncludeorExclude.Include; + _gameDirsBox.Selection.UnselectAll(); } @@ -845,9 +847,11 @@ namespace Ryujinx.Ui.Windows if (selection.GetSelected(out TreeIter treeIter)) { var model = _gameDirsBox.Model; + _gameDirsBoxStore1.AppendValues(model.GetValue(treeIter, 0)); Console.WriteLine(model.GetValue(treeIter,0)); + _directoryChanged = true; - + _gameDirsBoxStore.Remove(ref treeIter); } ((ToggleButton)sender).SetStateFlags(StateFlags.Normal, true);