diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 59fcc25..6d9e5a4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -159,8 +159,10 @@ impl IcedBuilder { self.config = config; self.theme.settle_at(self.config.selected_theme()); - if let Some(path) = self.config.last_project() - && self.project_path.is_none() + if let Some(path) = self + .config + .last_project() + .filter(|_| self.project_path.is_none()) { if path.exists() && path.is_file() { return Task::perform( |
