Remove top level view model change.

This commit is contained in:
Yu Leng (from Dev Box)
2025-04-30 17:51:59 +08:00
parent 92615ec1d4
commit ef264d93d6

View File

@@ -275,14 +275,11 @@ public sealed partial class TopLevelViewModel : ObservableObject, IListItem
if (model is IFallbackCommandItem fallback)
{
var wasEmpty = string.IsNullOrEmpty(Title);
var oldTitle = Title;
// RPC for method
fallback.FallbackHandler.UpdateQuery(newQuery);
var isEmpty = string.IsNullOrEmpty(Title);
var newTitle = Title;
return wasEmpty != isEmpty || oldTitle != newTitle;
return wasEmpty != isEmpty;
}
return false;