diff --git a/src/versions/solarfm-0.0.1/SolarFM/solarfm/context/mixins/show_hide_mixin.py b/src/versions/solarfm-0.0.1/SolarFM/solarfm/context/mixins/show_hide_mixin.py index 2e7a4fd..687a47a 100644 --- a/src/versions/solarfm-0.0.1/SolarFM/solarfm/context/mixins/show_hide_mixin.py +++ b/src/versions/solarfm-0.0.1/SolarFM/solarfm/context/mixins/show_hide_mixin.py @@ -110,7 +110,9 @@ class ShowHideMixin: def show_new_file_menu(self, widget=None, eve=None): - self.builder.get_object("context_menu_fname").set_text("") + context_menu_fname = self.builder.get_object("context_menu_fname") + context_menu_fname.set_text("") + context_menu_fname.grab_focus() new_file_menu = self.builder.get_object("new_file_menu") response = new_file_menu.run() diff --git a/src/versions/solarfm-0.0.1/SolarFM/solarfm/context/mixins/ui/grid_mixin.py b/src/versions/solarfm-0.0.1/SolarFM/solarfm/context/mixins/ui/grid_mixin.py index c9135ee..696167e 100644 --- a/src/versions/solarfm-0.0.1/SolarFM/solarfm/context/mixins/ui/grid_mixin.py +++ b/src/versions/solarfm-0.0.1/SolarFM/solarfm/context/mixins/ui/grid_mixin.py @@ -42,7 +42,14 @@ class GridMixin: def update_store(self, i, store, icon, tab, dir, file): fpath = f"{dir}/{file}" - itr = store.get_iter(i) + + loop = True + while loop: + try: + itr = store.get_iter(i) + loop = False + except: + pass if not icon: icon = self.get_system_thumbnail(fpath, tab.SYS_ICON_WH[0]) diff --git a/src/versions/solarfm-0.0.1/SolarFM/solarfm/context/mixins/ui/widget_file_action_mixin.py b/src/versions/solarfm-0.0.1/SolarFM/solarfm/context/mixins/ui/widget_file_action_mixin.py index dea712b..9a4013a 100644 --- a/src/versions/solarfm-0.0.1/SolarFM/solarfm/context/mixins/ui/widget_file_action_mixin.py +++ b/src/versions/solarfm-0.0.1/SolarFM/solarfm/context/mixins/ui/widget_file_action_mixin.py @@ -115,7 +115,7 @@ class WidgetFileActionMixin: entry.set_position(-1) def do_file_search(self, widget, eve=None): - query = widget.get_text() + query = widget.get_text().lower() self.search_icon_grid.unselect_all() for i, file in enumerate(self.search_tab.get_files()): if query and query in file[0].lower(): @@ -123,8 +123,8 @@ class WidgetFileActionMixin: self.search_icon_grid.select_path(path) items = self.search_icon_grid.get_selected_items() - if len(items) == 1: - self.search_icon_grid.scroll_to_path(items[0], True, 0.5, 0.5) + if len(items) > 0: + self.search_icon_grid.scroll_to_path(items[-1], True, 0.5, 0.5) def open_files(self): @@ -290,6 +290,9 @@ class WidgetFileActionMixin: file = Gio.File.new_for_path(path) if _target_path: + if file.get_parent().get_path() == _target_path: + raise Exception("Parent dir of target and file locations are the same! Won't copy or move!") + if os.path.isdir(_target_path): info = file.query_info("standard::display-name", 0, cancellable=None) _target = f"{_target_path}/{info.get_display_name()}" diff --git a/user_config/usr/share/solarfm/Main_Window.glade b/user_config/usr/share/solarfm/Main_Window.glade index d4b201c..bd83627 100644 --- a/user_config/usr/share/solarfm/Main_Window.glade +++ b/user_config/usr/share/solarfm/Main_Window.glade @@ -623,20 +623,24 @@ SolarFM is developed on Atom, git, and using Python 3+ with Gtk GObject introspe False - popup False True - center + center-always True - splashscreen + normal True True + False False center False + 5 + 5 + 5 + 5 vertical 2 @@ -694,7 +698,13 @@ SolarFM is developed on Atom, git, and using Python 3+ with Gtk GObject introspe True True True + New File/Dir Name... + True gtk-edit + False + False + False + False New File/Dir Name... @@ -795,15 +805,15 @@ SolarFM is developed on Atom, git, and using Python 3+ with Gtk GObject introspe 120 False - popup False True - center + center-always True - splashscreen + normal True True True + False False center @@ -1233,19 +1243,23 @@ SolarFM is developed on Atom, git, and using Python 3+ with Gtk GObject introspe False - popup False True - center + center-always True - splashscreen + normal True True + False False center False + 5 + 5 + 5 + 5 vertical 2 @@ -1336,7 +1350,13 @@ SolarFM is developed on Atom, git, and using Python 3+ with Gtk GObject introspe True True True + Rename To: + True gtk-edit + False + False + False + False To: