Fixes #4035 - FileDialog keeps path when selecting folder (optionally) (#4065)

* WIP keep path

* Make new 'sticky filename' behaviour optional

* Tests for new behaviour when selecting in TreeView

* Add more tests, this time for table view navigation

* Add the new style option into UICatalog scenario
This commit is contained in:
Thomas Nind
2025-05-09 15:47:04 +01:00
committed by Tig
parent d2cf74448c
commit a08ea41b91
5 changed files with 236 additions and 4 deletions

View File

@@ -13,3 +13,20 @@ public class V2TestDrivers : IEnumerable<object []>
IEnumerator IEnumerable.GetEnumerator () => GetEnumerator ();
}
/// <summary>
/// Test cases for functions with signature <code>V2TestDriver d, bool someFlag</code>
/// that enumerates all variations
/// </summary>
public class V2TestDrivers_WithTrueFalseParameter : IEnumerable<object []>
{
public IEnumerator<object []> GetEnumerator ()
{
yield return new object [] { V2TestDriver.V2Win,false };
yield return new object [] { V2TestDriver.V2Net,false };
yield return new object [] { V2TestDriver.V2Win,true };
yield return new object [] { V2TestDriver.V2Net,true };
}
IEnumerator IEnumerable.GetEnumerator () => GetEnumerator ();
}