mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-07-05 09:59:28 +02:00
Compare commits
2 Commits
copilot/fi
...
copilot/fi
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f003e277cb | ||
|
|
2a293eccd1 |
@@ -129,8 +129,8 @@ public partial class ContentPageViewModel : PageViewModel, ICommandBarContext
|
||||
|
||||
UpdateDetails();
|
||||
|
||||
model.ItemsChanged += Model_ItemsChanged;
|
||||
FetchContent();
|
||||
model.ItemsChanged += Model_ItemsChanged;
|
||||
|
||||
DoOnUiThread(
|
||||
() =>
|
||||
|
||||
@@ -44,9 +44,9 @@ public partial class ContentTreeViewModel(ITreeContent _tree, WeakReference<IPag
|
||||
UpdateProperty(nameof(Root));
|
||||
}
|
||||
|
||||
FetchContent();
|
||||
model.PropChanged += Model_PropChanged;
|
||||
model.ItemsChanged += Model_ItemsChanged;
|
||||
FetchContent();
|
||||
}
|
||||
|
||||
// Theoretically, we should unify this with the one in CommandPalettePageViewModelFactory
|
||||
|
||||
@@ -209,8 +209,8 @@ public sealed partial class DockBandViewModel : ExtensionObjectViewModel
|
||||
var list = command.Model.Unsafe as IListPage;
|
||||
if (list is not null)
|
||||
{
|
||||
list.ItemsChanged += HandleItemsChanged;
|
||||
InitializeFromList(list);
|
||||
list.ItemsChanged += HandleItemsChanged;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -957,8 +957,8 @@ public partial class ListViewModel : PageViewModel, IDisposable
|
||||
Filters?.InitializeProperties();
|
||||
UpdateProperty(nameof(Filters));
|
||||
|
||||
model.ItemsChanged += Model_ItemsChanged;
|
||||
FetchItems(true);
|
||||
model.ItemsChanged += Model_ItemsChanged;
|
||||
}
|
||||
|
||||
private static IGridPropertiesViewModel? LoadGridPropertiesViewModel(IGridProperties? gridProperties)
|
||||
|
||||
@@ -31,7 +31,7 @@ public static class TerminalHelper
|
||||
}
|
||||
else if (openNewTab)
|
||||
{
|
||||
argsPrefix = "--window 0 nt";
|
||||
argsPrefix = "nt";
|
||||
}
|
||||
|
||||
return $"{argsPrefix} --profile \"{profileName}\"";
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace Microsoft.Plugin.WindowsTerminal.UnitTests
|
||||
[DataTestMethod]
|
||||
[DataRow("Windows PowerShell", true, true, "--window _quake --profile \"Windows PowerShell\"")]
|
||||
[DataRow("Windows PowerShell", false, true, "--window _quake --profile \"Windows PowerShell\"")]
|
||||
[DataRow("Windows PowerShell", true, false, "--window 0 nt --profile \"Windows PowerShell\"")]
|
||||
[DataRow("Windows PowerShell", true, false, "nt --profile \"Windows PowerShell\"")]
|
||||
[DataRow("Windows PowerShell", false, false, " --profile \"Windows PowerShell\"")]
|
||||
public void ArgumentsTest(string profile, bool openNewTab, bool openQuake, string expectedArguments)
|
||||
{
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace Microsoft.PowerToys.Run.Plugin.WindowsTerminal.Helpers
|
||||
}
|
||||
else if (openNewTab)
|
||||
{
|
||||
argsPrefix = "--window 0 nt";
|
||||
argsPrefix = "nt";
|
||||
}
|
||||
|
||||
return $"{argsPrefix} --profile \"{profileName}\"";
|
||||
|
||||
Reference in New Issue
Block a user