diff options
| author | Aram Drevekenin <aram@poor.dev> | 2024-07-18 10:45:42 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-18 10:45:42 +0200 |
| commit | 2deffc3289ff05a1429366cfa7cf7195ec27034f (patch) | |
| tree | 5e8af968db1c5bb966bfe25b484c001378ab9351 /src | |
| parent | docs(changelog): configuration screen (diff) | |
| download | sl0ppij-2deffc3289ff05a1429366cfa7cf7195ec27034f.tar.gz sl0ppij-2deffc3289ff05a1429366cfa7cf7195ec27034f.tar.xz sl0ppij-2deffc3289ff05a1429366cfa7cf7195ec27034f.zip | |
feat(plugins): add stringified layout to switch_session_with_layout (#3503)
Diffstat (limited to 'src')
| -rw-r--r-- | src/commands.rs | 4 | ||||
| -rw-r--r-- | src/sessions.rs | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/commands.rs b/src/commands.rs index 796e34e7..01fa1fe0 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -445,6 +445,10 @@ pub(crate) fn start_client(opts: CliArgs) { config_without_layout.clone(), ), LayoutInfo::Url(url) => Layout::from_url(&url, config_without_layout.clone()), + LayoutInfo::Stringified(stringified_layout) => Layout::from_stringified_layout( + &stringified_layout, + config_without_layout.clone(), + ), }; match new_session_layout { Ok(new_session_layout) => { diff --git a/src/sessions.rs b/src/sessions.rs index 75e8ddf6..3a25daf4 100644 --- a/src/sessions.rs +++ b/src/sessions.rs @@ -64,7 +64,7 @@ pub(crate) fn get_resurrectable_sessions() -> Vec<(String, Duration, Layout)> { }; let layout = match Layout::from_kdl( &raw_layout, - layout_file_name.display().to_string(), + Some(layout_file_name.display().to_string()), None, None, ) { |
