From 596be8df190e12f68e8bb95e84a2e22f27d90763 Mon Sep 17 00:00:00 2001 From: Heydar Ismayilli Date: Sat, 11 Jul 2026 11:11:59 +0400 Subject: [PATCH 1/9] Added quickaccess panel --- ui/MainWindow.glade | 162 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 162 insertions(+) diff --git a/ui/MainWindow.glade b/ui/MainWindow.glade index 249ce41..8e437a6 100644 --- a/ui/MainWindow.glade +++ b/ui/MainWindow.glade @@ -3096,6 +3096,168 @@ Fatih Altun <fatih.altun@pardus.org.tr> 5 + + + True + False + 8 + + + True + False + center + folder-remote + + + False + True + 0 + + + + + True + False + start + Quick Access + + + + + + + False + True + 1 + + + + + True + False + + + False + True + 2 + + + + + False + True + 6 + + + + + True + False + + + False + True + 7 + + + + + True + False + + + True + False + vertical + + + True + False + True + + + False + True + 0 + + + + + True + False + 6 + Listing... + + + False + True + 1 + + + + + page0 + page0 + + + + + True + False + + + page1 + page1 + 1 + + + + + True + False + vertical + + + True + False + 3 + 5 + No attached file was found for quick access + + + False + True + 0 + + + + + gtk-add + True + True + True + True + + + False + True + 1 + + + + + page2 + page2 + 2 + + + + + False + True + 8 + + From 4b0fa832f38c979e3afb1cabd99c923f96ef8b07 Mon Sep 17 00:00:00 2001 From: Heydar Ismayilli Date: Sat, 11 Jul 2026 14:45:14 +0400 Subject: [PATCH 2/9] Relevant code for attaching files and navigating between pages has been written --- src/MainWindow.py | 68 +++++++++++++++++++++++++++++++++++++++++++++ ui/MainWindow.glade | 33 ++++++++++++++++++++-- 2 files changed, 98 insertions(+), 3 deletions(-) diff --git a/src/MainWindow.py b/src/MainWindow.py index efb9a3b..25c8a39 100644 --- a/src/MainWindow.py +++ b/src/MainWindow.py @@ -74,6 +74,9 @@ def __init__(self, application): # self.set_system_settings_section() + # quick access panel listing + self.quickaccess_list() + cssProvider = Gtk.CssProvider() cssProvider.load_from_path(os.path.dirname(os.path.abspath(__file__)) + "/../css/style.css") screen = Gdk.Screen.get_default() @@ -228,6 +231,12 @@ def UI(str): self.mount_inprogress = False + # Quick Access + self.stack_quickaccess = UI("stack_quickaccess") + self.quickaccess_listbox = UI("quickaccess_listbox") + self.quickaccess_addbtn = UI("quickaccess_addbtn") + self.quickaccess_addnew_btn = UI("quickaccess_addnew_btn") + # About dialog self.dialog_about = UI("dialog_about") self.dialog_about.set_program_name(_("Pardus My Computer")) @@ -258,6 +267,9 @@ def defineVariables(self): self.place_remove_name = None # self.selected_mount_uri = "" # self.selected_mount_name = "" + self.quickaccess_jsondata = None + self.pardusmycomputer_cache = None + self.quickaccess_file = None # VolumeMonitor self.vm = Gio.VolumeMonitor.get() @@ -268,6 +280,10 @@ def defineVariables(self): self.vm.connect('drive-connected', self.on_mount_added) self.vm.connect('drive-disconnected', self.on_mount_removed) + # Quick Access + self.quickaccess_addbtn.connect('clicked', self.on_quickaccess_add) + self.quickaccess_addnew_btn.connect('clicked', self.on_quickaccess_add) + def add_to_desktop(self): # Copy app's desktop file to user's desktop path on first run user_desktopcontrol_file = Path.joinpath(self.UserSettings.user_config_dir, Path("desktop")) @@ -2651,3 +2667,55 @@ def notify(self, message_summary="", message_body="", icon="pardus-mycomputer"): notification.show() except Exception as e: print("{}".format(e)) + + + # Quick Access Panel + def quickaccess_list(self): + homefolder = Path.home() + self.pardusmycomputer_cache = homefolder / ".cache" / "pardus-mycomputer" + self.quickaccess_file = self.pardusmycomputer_cache / "quickaccess_data.json" + if not os.path.exists(self.pardusmycomputer_cache): + os.makedirs(self.pardusmycomputer_cache) + dbfile = open(self.quickaccess_file, "w") + jsondata = """{ + "quickaccess": [] +}""" + dbfile.write(jsondata) + dbfile.close() + + + # loading json + with open(self.quickaccess_file, "r") as jsdata: + self.quickaccess_jsondata = json.load(jsdata) + quickaccesslist = self.quickaccess_jsondata["quickaccess"] + if len(quickaccesslist) == 0: + self.stack_quickaccess.set_visible_child_name("page2") + else: + self.stack_quickaccess.set_visible_child_name("page1") + + + def on_quickaccess_add(self, button): + dialog = Gtk.FileChooserDialog( + title="Please choose a file", + action=Gtk.FileChooserAction.OPEN, + ) + dialog.add_buttons(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL, + Gtk.STOCK_OPEN, Gtk.ResponseType.OK) + + filter_any = Gtk.FileFilter() + filter_any.set_name("All files") + filter_any.add_pattern("*") + dialog.add_filter(filter_any) + + response = dialog.run() + if response == Gtk.ResponseType.OK: + filepath = dialog.get_filename() + print("Selected file:", filepath) + + self.quickaccess_jsondata["quickaccess"].append(filepath) + with open(self.quickaccess_file, "w", encoding="utf-8") as f: # writing to metadata file + json.dump(self.quickaccess_jsondata, f, indent=4, ensure_ascii=False) + self.stack_quickaccess.set_visible_child_name("page1") + else: + print("No file selected (cancelled).") + dialog.destroy() diff --git a/ui/MainWindow.glade b/ui/MainWindow.glade index 8e437a6..a2a04e4 100644 --- a/ui/MainWindow.glade +++ b/ui/MainWindow.glade @@ -3165,7 +3165,7 @@ Fatih Altun <fatih.altun@pardus.org.tr> True False - + True False vertical @@ -3201,9 +3201,36 @@ Fatih Altun <fatih.altun@pardus.org.tr> - + True False + vertical + True + + + True + False + + + False + True + 0 + + + + + gtk-add + True + True + True + True + + + False + True + 1 + + page1 @@ -3212,7 +3239,7 @@ Fatih Altun <fatih.altun@pardus.org.tr> - + True False vertical From bcc5813d0d4ab1ea9f874ec129274bdde9432bbd Mon Sep 17 00:00:00 2001 From: Heydar Ismayilli Date: Sun, 12 Jul 2026 01:14:26 +0400 Subject: [PATCH 3/9] File adding and opening features have been written --- src/MainWindow.py | 78 ++++++++++++++++++++++++++++++++++++++++++++- ui/MainWindow.glade | 22 +++++++++++-- 2 files changed, 96 insertions(+), 4 deletions(-) diff --git a/src/MainWindow.py b/src/MainWindow.py index 25c8a39..e6a7d7b 100644 --- a/src/MainWindow.py +++ b/src/MainWindow.py @@ -236,6 +236,7 @@ def UI(str): self.quickaccess_listbox = UI("quickaccess_listbox") self.quickaccess_addbtn = UI("quickaccess_addbtn") self.quickaccess_addnew_btn = UI("quickaccess_addnew_btn") + self.quickaccess_scrolled_window = UI("quickaccess_scrolled_window") # About dialog self.dialog_about = UI("dialog_about") @@ -2691,6 +2692,9 @@ def quickaccess_list(self): if len(quickaccesslist) == 0: self.stack_quickaccess.set_visible_child_name("page2") else: + self.quickaccess_scrolled_window.set_min_content_height(200) # the height of the list window is being adjusted in pixels + for fileslist in self.quickaccess_jsondata["quickaccess"]: + self.quickaccess_listbox.add(self.quickaccess_create_row(fileslist)) self.stack_quickaccess.set_visible_child_name("page1") @@ -2715,7 +2719,79 @@ def on_quickaccess_add(self, button): self.quickaccess_jsondata["quickaccess"].append(filepath) with open(self.quickaccess_file, "w", encoding="utf-8") as f: # writing to metadata file json.dump(self.quickaccess_jsondata, f, indent=4, ensure_ascii=False) + + # clear listbox + for row in self.quickaccess_listbox.get_children(): + self.quickaccess_listbox.remove(row) + + # reload json + with open(self.quickaccess_file, "r") as jsdata: + self.quickaccess_jsondata = json.load(jsdata) + for fileslist in self.quickaccess_jsondata["quickaccess"]: # rewriting listbox + self.quickaccess_listbox.add(self.quickaccess_create_row(fileslist)) + self.quickaccess_listbox.show_all() self.stack_quickaccess.set_visible_child_name("page1") else: - print("No file selected (cancelled).") + print("No file selected (cancelled)") dialog.destroy() + + + def quickaccess_create_row(self, fullpath): + row_box = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL, spacing=5) + # Icon + image = Gtk.Image.new_from_icon_name("text-x-generic", Gtk.IconSize.BUTTON) + image.set_halign(Gtk.Align.START) + + # Text + text_box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, spacing=2) + text_box.set_halign(Gtk.Align.CENTER) + label_name = Gtk.Label(label=os.path.basename(fullpath)) + label_name.set_xalign(0) + + # the file path text is being shortened + short_path = fullpath[:50] + "..." if len(fullpath) > 50 else fullpath + label_path = Gtk.Label(label=short_path) + label_path.set_xalign(0) + + # Button Box and buttons + button_box = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL, spacing=6) + button_box.set_halign(Gtk.Align.END) + button_box.set_valign(Gtk.Align.CENTER) + + button_open = Gtk.Button() + button_open.set_image(Gtk.Image.new_from_icon_name("document-open-symbolic", Gtk.IconSize.BUTTON)) + button_open.set_tooltip_text(_("Open")) + button_open.set_relief(Gtk.ReliefStyle.NONE) + + button_opndir = Gtk.Button() + button_opndir.set_image(Gtk.Image.new_from_icon_name("folder-open-symbolic", Gtk.IconSize.BUTTON)) + button_opndir.set_tooltip_text(_("Open in directory")) + button_opndir.set_relief(Gtk.ReliefStyle.NONE) + + # Signals + button_open.connect("clicked", self.on_open_file, fullpath) + button_opndir.connect("clicked", self.on_open_in_directory, fullpath) + + text_box.pack_start(label_name, False, False, 0) + text_box.pack_start(label_path, False, False, 0) + + button_box.pack_start(button_open, False, False, 0) + button_box.pack_start(button_opndir, False, False, 0) + + # ROW placement (efforts were made to minimize gaps) + row_box.pack_start(image, False, False, 3) + row_box.pack_start(text_box, False, False, 3) + row_box.pack_end(button_box, False, False, 3) + + return row_box + + + # file open + def on_open_file(self, button, fullpath): + subprocess.run(["xdg-open", fullpath]) + + + # file open in directory + def on_open_in_directory(self, button, fullpath): + subprocess.run(["thunar", fullpath]) + diff --git a/ui/MainWindow.glade b/ui/MainWindow.glade index a2a04e4..4658495 100644 --- a/ui/MainWindow.glade +++ b/ui/MainWindow.glade @@ -3205,11 +3205,27 @@ Fatih Altun <fatih.altun@pardus.org.tr> True False vertical - True - + True - False + True + in + 100 + 0 + True + + + True + False + + + True + False + none + + + + False From 857756fc30d68c5008093408765e7ca693b60096 Mon Sep 17 00:00:00 2001 From: Heydar Ismayilli Date: Sun, 12 Jul 2026 12:14:25 +0400 Subject: [PATCH 4/9] Features have been improved to allow attaching a file from a remote server and checking for potential issues related to the file or server --- src/MainWindow.py | 64 +++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 59 insertions(+), 5 deletions(-) diff --git a/src/MainWindow.py b/src/MainWindow.py index e6a7d7b..4f673e5 100644 --- a/src/MainWindow.py +++ b/src/MainWindow.py @@ -1,5 +1,6 @@ import json import os +import re import subprocess import urllib.parse from pathlib import Path @@ -2738,14 +2739,16 @@ def on_quickaccess_add(self, button): def quickaccess_create_row(self, fullpath): row_box = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL, spacing=5) + row_box.set_tooltip_text(_("Full path: ")+fullpath) + row_box.set_margin_bottom(8) # Icon - image = Gtk.Image.new_from_icon_name("text-x-generic", Gtk.IconSize.BUTTON) + image = Gtk.Image() image.set_halign(Gtk.Align.START) # Text text_box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, spacing=2) text_box.set_halign(Gtk.Align.CENTER) - label_name = Gtk.Label(label=os.path.basename(fullpath)) + label_name = Gtk.Label() label_name.set_xalign(0) # the file path text is being shortened @@ -2768,9 +2771,39 @@ def quickaccess_create_row(self, fullpath): button_opndir.set_tooltip_text(_("Open in directory")) button_opndir.set_relief(Gtk.ReliefStyle.NONE) - # Signals - button_open.connect("clicked", self.on_open_file, fullpath) - button_opndir.connect("clicked", self.on_open_in_directory, fullpath) + # Controls + if "/gvfs/" in fullpath: + output = self.check_remoteserver(fullpath) + image.set_from_icon_name("folder-remote", Gtk.IconSize.BUTTON) + print("remoteserver: ", output) + m = re.search(r'host=([^,/]+)', fullpath) + serverip = m.group(1) + if output == True: + label_name.set_label(os.path.basename(fullpath)+_("\tServer: (")+serverip+")") + # Signals + button_open.connect("clicked", self.on_open_file, fullpath) + button_opndir.connect("clicked", self.on_open_in_directory, fullpath) + elif output == "1": # if the server is not connected + label_name.set_label(os.path.basename(fullpath) + _(" (Server not connect)")) + button_open.set_sensitive(False) + button_opndir.set_sensitive(False) + elif output == "2": # if the file cannot be found even though the server is connected + label_name.set_label(os.path.basename(fullpath) + _(" (Deleted)")) + button_open.set_sensitive(False) + button_opndir.set_sensitive(False) + + elif os.path.exists(fullpath): + label_name.set_label(os.path.basename(fullpath)) + image.set_from_icon_name("text-x-generic-template", Gtk.IconSize.BUTTON) + # Signals + button_open.connect("clicked", self.on_open_file, fullpath) + button_opndir.connect("clicked", self.on_open_in_directory, fullpath) + + elif not os.path.exists(fullpath): + label_name.set_label(os.path.basename(fullpath) + _(" (Deleted)")) + image.set_from_icon_name("text-x-generic-template", Gtk.IconSize.BUTTON) + button_open.set_sensitive(False) + button_opndir.set_sensitive(False) text_box.pack_start(label_name, False, False, 0) text_box.pack_start(label_path, False, False, 0) @@ -2795,3 +2828,24 @@ def on_open_file(self, button, fullpath): def on_open_in_directory(self, button, fullpath): subprocess.run(["thunar", fullpath]) + + # function that checks for file existence on a remote server + def check_remoteserver(self, path): + marker = "/gvfs/" + idx = path.find(marker) + len(marker) + slash = path.find("/", idx) + + if slash == -1: + mount_dir = path + else: + mount_dir = path[:slash] + + # connection status check + if not os.path.isdir(mount_dir): + return "1" + + # file existence check + if not os.path.exists(path): + return "2" + return True + From 2a90ad3be5e3f0efae342025bdec79acf597dee0 Mon Sep 17 00:00:00 2001 From: Heydar Ismayilli Date: Sun, 12 Jul 2026 12:36:34 +0400 Subject: [PATCH 5/9] The ability to remove an added file from the list has been added --- src/MainWindow.py | 48 +++++++++++++++++++++++++++++++++++++---------- 1 file changed, 38 insertions(+), 10 deletions(-) diff --git a/src/MainWindow.py b/src/MainWindow.py index 4f673e5..1764753 100644 --- a/src/MainWindow.py +++ b/src/MainWindow.py @@ -1905,6 +1905,7 @@ def on_menu_refresh_clicked(self, button): print("Manually refreshing disks") self.addDisksToGUI() self.set_places() + self.reload_quickaccess_listbox() def on_sw_closeapp_main_state_set(self, switch, state): user_config_closeapp_main = self.UserSettings.config_closeapp_main @@ -2699,6 +2700,20 @@ def quickaccess_list(self): self.stack_quickaccess.set_visible_child_name("page1") + # reload quickaccess listbox + def reload_quickaccess_listbox(self): + # clear listbox + for row in self.quickaccess_listbox.get_children(): + self.quickaccess_listbox.remove(row) + # reload json + with open(self.quickaccess_file, "r") as jsdata: + self.quickaccess_jsondata = json.load(jsdata) + for fileslist in self.quickaccess_jsondata["quickaccess"]: # rewriting listbox + self.quickaccess_listbox.add(self.quickaccess_create_row(fileslist)) + self.quickaccess_listbox.show_all() + print("Reloaded quickaccess listbox") + + def on_quickaccess_add(self, button): dialog = Gtk.FileChooserDialog( title="Please choose a file", @@ -2721,16 +2736,8 @@ def on_quickaccess_add(self, button): with open(self.quickaccess_file, "w", encoding="utf-8") as f: # writing to metadata file json.dump(self.quickaccess_jsondata, f, indent=4, ensure_ascii=False) - # clear listbox - for row in self.quickaccess_listbox.get_children(): - self.quickaccess_listbox.remove(row) - - # reload json - with open(self.quickaccess_file, "r") as jsdata: - self.quickaccess_jsondata = json.load(jsdata) - for fileslist in self.quickaccess_jsondata["quickaccess"]: # rewriting listbox - self.quickaccess_listbox.add(self.quickaccess_create_row(fileslist)) - self.quickaccess_listbox.show_all() + self.reload_quickaccess_listbox() + self.quickaccess_scrolled_window.set_min_content_height(200) # the height of the list window is being adjusted in pixels self.stack_quickaccess.set_visible_child_name("page1") else: print("No file selected (cancelled)") @@ -2771,6 +2778,11 @@ def quickaccess_create_row(self, fullpath): button_opndir.set_tooltip_text(_("Open in directory")) button_opndir.set_relief(Gtk.ReliefStyle.NONE) + button_remove = Gtk.Button() + button_remove.set_image(Gtk.Image.new_from_icon_name("user-trash-symbolic", Gtk.IconSize.BUTTON)) + button_remove.set_tooltip_text(_("Remove file")) + button_remove.set_relief(Gtk.ReliefStyle.NONE) + # Controls if "/gvfs/" in fullpath: output = self.check_remoteserver(fullpath) @@ -2783,6 +2795,7 @@ def quickaccess_create_row(self, fullpath): # Signals button_open.connect("clicked", self.on_open_file, fullpath) button_opndir.connect("clicked", self.on_open_in_directory, fullpath) + button_remove.connect("clicked", self.on_quickaccess_fileremove, fullpath) elif output == "1": # if the server is not connected label_name.set_label(os.path.basename(fullpath) + _(" (Server not connect)")) button_open.set_sensitive(False) @@ -2798,6 +2811,7 @@ def quickaccess_create_row(self, fullpath): # Signals button_open.connect("clicked", self.on_open_file, fullpath) button_opndir.connect("clicked", self.on_open_in_directory, fullpath) + button_remove.connect("clicked", self.on_quickaccess_fileremove, fullpath) elif not os.path.exists(fullpath): label_name.set_label(os.path.basename(fullpath) + _(" (Deleted)")) @@ -2810,6 +2824,7 @@ def quickaccess_create_row(self, fullpath): button_box.pack_start(button_open, False, False, 0) button_box.pack_start(button_opndir, False, False, 0) + button_box.pack_start(button_remove, False, False, 0) # ROW placement (efforts were made to minimize gaps) row_box.pack_start(image, False, False, 3) @@ -2829,6 +2844,19 @@ def on_open_in_directory(self, button, fullpath): subprocess.run(["thunar", fullpath]) + # remove selected file in quick access metadata + def on_quickaccess_fileremove(self, button, fullpath): + # reload json + with open(self.quickaccess_file, "r") as f: + self.quickaccess_jsondata = json.load(f) + self.quickaccess_jsondata["quickaccess"].remove(fullpath) + print("removed file: ", fullpath) + # rewriting json + with open(self.quickaccess_file, "w") as f: + json.dump(self.quickaccess_jsondata, f, indent=4, ensure_ascii=False) + self.reload_quickaccess_listbox() # reload listbox + + # function that checks for file existence on a remote server def check_remoteserver(self, path): marker = "/gvfs/" From 53cd5ff968f7e50de1bd858b994112dac081f347 Mon Sep 17 00:00:00 2001 From: Heydar Ismayilli Date: Sun, 12 Jul 2026 13:24:20 +0400 Subject: [PATCH 6/9] Updated translate file --- po/tr.po | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/po/tr.po b/po/tr.po index 2a259ab..28ebecf 100644 --- a/po/tr.po +++ b/po/tr.po @@ -512,3 +512,30 @@ msgstr "# not: görünmesini sağlamak için kare işareti kaldırın" #~ msgid "Website" #~ msgstr "Website" + +msgid "No attached file was found for quick access" +msgstr "Hızlı erişim için ekli dosya bulunamadı" + +msgid "Please choose a file" +msgstr "Lütfen dosya seçiniz" + +msgid "Full path: " +msgstr "Klasör: " + +msgid "Open" +msgstr "Aç" + +msgid "Open in directory" +msgstr "Klasörde aç" + +msgid "Remove file" +msgstr "Dosyayı sil" + +msgid "\tServer: (" +msgstr "\tSunucu: (" + +msgid " (Server not connect)" +msgstr " (Sunucu bağlı değil)" + +msgid " (Deleted)" +msgstr " (Silinmiş)" From 9c01625e466b05cc17b18d45c5078221b5a75416 Mon Sep 17 00:00:00 2001 From: Heydar Ismayilli Date: Sun, 12 Jul 2026 13:24:30 +0400 Subject: [PATCH 7/9] Fixed --- src/MainWindow.py | 2 +- ui/MainWindow.glade | 35 +---------------------------------- 2 files changed, 2 insertions(+), 35 deletions(-) diff --git a/src/MainWindow.py b/src/MainWindow.py index 1764753..28c6588 100644 --- a/src/MainWindow.py +++ b/src/MainWindow.py @@ -2716,7 +2716,7 @@ def reload_quickaccess_listbox(self): def on_quickaccess_add(self, button): dialog = Gtk.FileChooserDialog( - title="Please choose a file", + title=_("Please choose a file"), action=Gtk.FileChooserAction.OPEN, ) dialog.add_buttons(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL, diff --git a/ui/MainWindow.glade b/ui/MainWindow.glade index 4658495..2bce8c8 100644 --- a/ui/MainWindow.glade +++ b/ui/MainWindow.glade @@ -3165,40 +3165,7 @@ Fatih Altun <fatih.altun@pardus.org.tr> True False - - True - False - vertical - - - True - False - True - - - False - True - 0 - - - - - True - False - 6 - Listing... - - - False - True - 1 - - - - - page0 - page0 - + From ba7d66be3a09616d0e71713e9b4576d216d742f3 Mon Sep 17 00:00:00 2001 From: Heydar Ismayilli Date: Sun, 12 Jul 2026 20:24:51 +0400 Subject: [PATCH 8/9] Updated translate file --- po/tr.po | 3 +++ 1 file changed, 3 insertions(+) diff --git a/po/tr.po b/po/tr.po index 28ebecf..5df2cfc 100644 --- a/po/tr.po +++ b/po/tr.po @@ -513,6 +513,9 @@ msgstr "# not: görünmesini sağlamak için kare işareti kaldırın" #~ msgid "Website" #~ msgstr "Website" +msgid "Quick Access" +msgstr "Hızlı Erişim" + msgid "No attached file was found for quick access" msgstr "Hızlı erişim için ekli dosya bulunamadı" From 3f0b9f1a554a3e6f3ef96327afd952dba8833ca1 Mon Sep 17 00:00:00 2001 From: Heydar Ismayilli Date: Sun, 12 Jul 2026 20:25:00 +0400 Subject: [PATCH 9/9] Fixed --- src/MainWindow.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/MainWindow.py b/src/MainWindow.py index 28c6588..374d0a7 100644 --- a/src/MainWindow.py +++ b/src/MainWindow.py @@ -2782,6 +2782,7 @@ def quickaccess_create_row(self, fullpath): button_remove.set_image(Gtk.Image.new_from_icon_name("user-trash-symbolic", Gtk.IconSize.BUTTON)) button_remove.set_tooltip_text(_("Remove file")) button_remove.set_relief(Gtk.ReliefStyle.NONE) + button_remove.connect("clicked", self.on_quickaccess_fileremove, fullpath) # Controls if "/gvfs/" in fullpath: @@ -2795,7 +2796,6 @@ def quickaccess_create_row(self, fullpath): # Signals button_open.connect("clicked", self.on_open_file, fullpath) button_opndir.connect("clicked", self.on_open_in_directory, fullpath) - button_remove.connect("clicked", self.on_quickaccess_fileremove, fullpath) elif output == "1": # if the server is not connected label_name.set_label(os.path.basename(fullpath) + _(" (Server not connect)")) button_open.set_sensitive(False) @@ -2811,7 +2811,6 @@ def quickaccess_create_row(self, fullpath): # Signals button_open.connect("clicked", self.on_open_file, fullpath) button_opndir.connect("clicked", self.on_open_in_directory, fullpath) - button_remove.connect("clicked", self.on_quickaccess_fileremove, fullpath) elif not os.path.exists(fullpath): label_name.set_label(os.path.basename(fullpath) + _(" (Deleted)"))