Added start path for powershell profile
Moorly CI / windows-build (push) Successful in 3m29s
Moorly CI / linux-build (push) Successful in 3m38s

This commit is contained in:
Squid committed 2026-11-08 16:57:39 +01:00
1 parent 317b773a18
commit 7260e2411f
1 file changed
+2 -3
+2 -3
View File
@@ -8676,7 +8676,7 @@ fn profile_dialog_layer(state: &Moorly, window: window::Id) -> Option<Element<'_
/// Right-hand side of the profile dialog for the selected profile type. /// Right-hand side of the profile dialog for the selected profile type.
fn profile_kind_view(draft: &ProfileDraft) -> Element<'_, Message> { fn profile_kind_view(draft: &ProfileDraft) -> Element<'_, Message> {
match draft.kind { match draft.kind {
ProfileKind::Terminal => { ProfileKind::Terminal | ProfileKind::PowerShell => {
let field = text_input("Start path", &draft.start_path) let field = text_input("Start path", &draft.start_path)
.on_input(Message::ProfileStartPathChanged) .on_input(Message::ProfileStartPathChanged)
.padding(Padding { .padding(Padding {
@@ -8701,7 +8701,7 @@ fn profile_kind_view(draft: &ProfileDraft) -> Element<'_, Message> {
.padding(Padding::ZERO.right(6.0)); .padding(Padding::ZERO.right(6.0));
column![ column![
text("Terminal").size(18), text(draft.kind.label()).size(18),
column![ column![
text("Start path").size(12), text("Start path").size(12),
stack![field, browse].width(Length::Fill), stack![field, browse].width(Length::Fill),
@@ -8711,7 +8711,6 @@ fn profile_kind_view(draft: &ProfileDraft) -> Element<'_, Message> {
.spacing(12) .spacing(12)
.into() .into()
} }
ProfileKind::PowerShell => text("PowerShell").size(18).into(),
ProfileKind::Ssh => { ProfileKind::Ssh => {
let host_port = row![ let host_port = row![
column![ column![