diff options
author | fiaxh <git@mx.ax.lt> | 2018-01-28 20:56:27 +0100 |
---|---|---|
committer | fiaxh <git@mx.ax.lt> | 2018-01-28 22:00:22 +0100 |
commit | f6db249c92e8fd25c1cb52872d3a647be034b626 (patch) | |
tree | 65ebb9d61fd27dcfd37a26137f507413193902d3 /libdino/src/entity/file_transfer.vala | |
parent | bec810e234a7b9783eb8f35e2ffd7c60d75e09c7 (diff) | |
download | dino-f6db249c92e8fd25c1cb52872d3a647be034b626.tar.gz dino-f6db249c92e8fd25c1cb52872d3a647be034b626.zip |
Only display transferred images, display file names, open in system viewer, include and use pgp embedded file names
Diffstat (limited to 'libdino/src/entity/file_transfer.vala')
-rw-r--r-- | libdino/src/entity/file_transfer.vala | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libdino/src/entity/file_transfer.vala b/libdino/src/entity/file_transfer.vala index 22474396..e2542e74 100644 --- a/libdino/src/entity/file_transfer.vala +++ b/libdino/src/entity/file_transfer.vala @@ -98,8 +98,8 @@ public class FileTransfer : Object { notify.connect(on_update); } - public string get_uri() { - return Path.build_filename(Dino.get_storage_dir(), "files", path); + public File get_file() { + return File.new_for_path(Path.build_filename(Dino.get_storage_dir(), "files", path)); } private void on_update(Object o, ParamSpec sp) { @@ -118,6 +118,8 @@ public class FileTransfer : Object { update_builder.set(db.file_transfer.local_time, (long) local_time.to_unix()); break; case "encryption": update_builder.set(db.file_transfer.encryption, encryption); break; + case "file-name": + update_builder.set(db.file_transfer.file_name, file_name); break; case "state": update_builder.set(db.file_transfer.state, state); break; case "provider": |