Skip to content

Commit f549a2d

Browse files
committed
Init
1 parent df84e67 commit f549a2d

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/Files.App.Controls/Omnibar/Omnibar.Properties.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,7 @@ public partial class Omnibar
2424

2525
partial void OnCurrentSelectedModeChanged(OmnibarMode? newValue)
2626
{
27-
CurrentSelectedModeName = newValue?.ModeName;
28-
}
29-
30-
partial void OnIsFocusedChanged(bool newValue)
31-
{
32-
//_textBox?.Focus(newValue ? FocusState.Programmatic : FocusState.Unfocused);
27+
// TODO: Invoke ChangeMode and make it internal instead in the future.
3328
}
3429
}
3530
}

src/Files.App.Controls/Omnibar/Omnibar.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ public void ChangeMode(OmnibarMode modeToExpand, bool shouldFocus = false, bool
145145
AutoSuggestBoxPadding = new(leftPadding, 0, rightPadding, 0);
146146

147147
CurrentSelectedMode = modeToExpand;
148+
CurrentSelectedModeName = modeToExpand.ModeName;
148149

149150
_textChangeReason = OmnibarTextChangeReason.ProgrammaticChange;
150151
ChangeTextBoxText(CurrentSelectedMode.Text ?? string.Empty);

0 commit comments

Comments
 (0)