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
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(),
}
}