Skip to content

Commit

Permalink
enhancement:add received file to recent file list
Browse files Browse the repository at this point in the history
  • Loading branch information
ketanbaitule committed May 22, 2024
1 parent 883a8f6 commit 82fcd48
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/service/plugins/share.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,9 @@ const SharePlugin = GObject.registerClass({
];
iconName = 'document-save-symbolic';

let gtk_recent_manager = Gtk.RecentManager.get_default();
gtk_recent_manager.add_item(file.get_uri());

if (packet.body.open) {
const uri = file.get_uri();
Gio.AppInfo.launch_default_for_uri_async(uri, null, null, null);
Expand Down

0 comments on commit 82fcd48

Please sign in to comment.