Restore opened tabs and windows upon restart (#72)

This commit is contained in:
Ulyssa 2023-06-28 23:42:31 -07:00
parent 758397eb5a
commit 7c39e88ba2
No known key found for this signature in database
GPG key ID: 1B3965A3D18B9B64
8 changed files with 428 additions and 25 deletions

View file

@ -195,16 +195,20 @@ pub fn mock_tunables() -> TunableValues {
pub fn mock_settings() -> ApplicationSettings {
ApplicationSettings {
matrix_dir: PathBuf::new(),
layout_json: PathBuf::new(),
session_json: PathBuf::new(),
profile_name: "test".into(),
profile: ProfileConfig {
user_id: user_id!("@user:example.com").to_owned(),
url: Url::parse("https://example.com").unwrap(),
settings: None,
dirs: None,
layout: None,
},
tunables: mock_tunables(),
dirs: mock_dirs(),
layout: Default::default(),
}
}