Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
pwmt
zathura
Commits
d047a36f
Commit
d047a36f
authored
Oct 06, 2011
by
Sebastian Ramacher
Browse files
save file info on close
parent
88c4dd6b
Changes
1
Hide whitespace changes
Inline
Side-by-side
zathura.c
View file @
d047a36f
...
...
@@ -345,6 +345,7 @@ document_open(zathura_t* zathura, const char* path, const char* password)
float
scale
=
1
.
0
f
;
if
(
zathura_db_get_fileinfo
(
zathura
->
database
,
zathura
->
document
->
file_path
,
&
page
,
&
offset
,
&
scale
))
{
page_set_delayed
(
zathura
,
page
);
zathura
->
document
->
scale
=
scale
;
}
return
true
;
...
...
@@ -396,6 +397,10 @@ document_close(zathura_t* zathura)
return
false
;
}
/* store last seen page */
zathura_db_set_fileinfo
(
zathura
->
database
,
zathura
->
document
->
file_path
,
zathura
->
document
->
current_page_number
,
/* zathura->document->offset TODO */
0
,
zathura
->
document
->
scale
);
render_free
(
zathura
->
sync
.
render_thread
);
zathura
->
sync
.
render_thread
=
NULL
;
...
...
Write
Preview
Supports
Markdown
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