Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
Pentagonum
gled
Commits
55ff5e45
Commit
55ff5e45
authored
Dec 16, 2019
by
René Rössler
😍
Browse files
only add recent file if it is running with a ui
parent
c7f1e92e
Pipeline
#103239860
passed with stage
in 10 minutes and 47 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/main.rs
src/main.rs
+3
-1
No files found.
src/main.rs
View file @
55ff5e45
...
...
@@ -43,7 +43,9 @@ fn main() {
if
let
Some
(
file
)
=
opts
.file
.as_ref
()
{
gled
::
load_state
(
file
.to_path_buf
())
.expect
(
"Could not open project"
);
ui
::
add_recent
(
file
);
if
!
opts
.noui
{
ui
::
add_recent
(
file
);
}
}
else
if
opts
.noui
{
panic!
(
"Can not start without ui and without project"
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment