Compare commits
2 Commits
8025bef8d3
...
dffc414182
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dffc414182 | ||
|
|
0d3d5ffa11 |
@@ -2257,6 +2257,9 @@ class MainWindow(QMainWindow):
|
|||||||
current_vis_row = current_proxy_idx.row()
|
current_vis_row = current_proxy_idx.row()
|
||||||
|
|
||||||
total_visible = self.proxy_model.rowCount()
|
total_visible = self.proxy_model.rowCount()
|
||||||
|
if total_visible == 0:
|
||||||
|
return
|
||||||
|
|
||||||
grid_size = self.thumbnail_view.gridSize()
|
grid_size = self.thumbnail_view.gridSize()
|
||||||
if grid_size.width() == 0:
|
if grid_size.width() == 0:
|
||||||
return
|
return
|
||||||
@@ -2273,7 +2276,7 @@ class MainWindow(QMainWindow):
|
|||||||
elif e.key() == Qt.Key_Up:
|
elif e.key() == Qt.Key_Up:
|
||||||
next_vis_row -= cols
|
next_vis_row -= cols
|
||||||
elif e.key() in (Qt.Key_Return, Qt.Key_Enter):
|
elif e.key() in (Qt.Key_Return, Qt.Key_Enter):
|
||||||
if current_proxy_idx.isValid():
|
if current_proxy_idx and current_proxy_idx.isValid():
|
||||||
self.open_viewer(current_proxy_idx)
|
self.open_viewer(current_proxy_idx)
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
@@ -4497,6 +4500,8 @@ class MainWindow(QMainWindow):
|
|||||||
UITexts.CONTEXT_MENU_OPEN)
|
UITexts.CONTEXT_MENU_OPEN)
|
||||||
full_path = os.path.abspath(
|
full_path = os.path.abspath(
|
||||||
self.proxy_model.data(selected_indexes[0], PATH_ROLE))
|
self.proxy_model.data(selected_indexes[0], PATH_ROLE))
|
||||||
|
p_data = self.proxy_model.data(selected_indexes[0], PATH_ROLE)
|
||||||
|
full_path = os.path.abspath(p_data) if p_data else ""
|
||||||
self.populate_open_with_submenu(open_submenu, full_path)
|
self.populate_open_with_submenu(open_submenu, full_path)
|
||||||
|
|
||||||
action_open_fullscreen = menu.addAction(
|
action_open_fullscreen = menu.addAction(
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ py-modules = [
|
|||||||
"imagecontroller",
|
"imagecontroller",
|
||||||
"metadatamanager",
|
"metadatamanager",
|
||||||
"propertiesdialog",
|
"propertiesdialog",
|
||||||
"thumbnailwidget",
|
#"thumbnailwidget",
|
||||||
"duplicatecache",
|
"duplicatecache",
|
||||||
"duplicatedialog",
|
"duplicatedialog",
|
||||||
"widgets",
|
"widgets",
|
||||||
|
|||||||
2
setup.py
2
setup.py
@@ -39,7 +39,7 @@ setup(
|
|||||||
"filesystemwatcher",
|
"filesystemwatcher",
|
||||||
"metadatamanager",
|
"metadatamanager",
|
||||||
"propertiesdialog",
|
"propertiesdialog",
|
||||||
"thumbnailwidget",
|
#"thumbnailwidget",
|
||||||
"duplicatecache",
|
"duplicatecache",
|
||||||
"duplicatedialog",
|
"duplicatedialog",
|
||||||
"widgets",
|
"widgets",
|
||||||
|
|||||||
@@ -414,7 +414,7 @@ class TagEditWidget(QWidget):
|
|||||||
if not full_path:
|
if not full_path:
|
||||||
return ""
|
return ""
|
||||||
words = full_path.replace('/', ' ').split()
|
words = full_path.replace('/', ' ').split()
|
||||||
search_terms = [f"tags:'{word}'" for word in words if word]
|
search_terms = [f"tags=al ggra'{word}'" for word in words if word]
|
||||||
return " ".join(search_terms)
|
return " ".join(search_terms)
|
||||||
|
|
||||||
def _get_current_query_text(self):
|
def _get_current_query_text(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user