summaryrefslogtreecommitdiff
path: root/onionshare_gui
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2020-08-20 23:01:56 -0400
committerMicah Lee <micah@micahflee.com>2020-08-20 23:01:56 -0400
commit7688fd5d453876b7ed5a6b7c9aa8bbb77d9f849c (patch)
tree8c40c7b0c33c153c855d79881a41524015f28e57 /onionshare_gui
parent218f9a651c7de05f7be12c6adfd52d6c8fc53edc (diff)
downloadonionshare-7688fd5d453876b7ed5a6b7c9aa8bbb77d9f849c.tar.gz
onionshare-7688fd5d453876b7ed5a6b7c9aa8bbb77d9f849c.zip
Fix drag and drop by hiding DropHereWidget widget, and adjust location of DropCountLabel
Diffstat (limited to 'onionshare_gui')
-rw-r--r--onionshare_gui/tab/mode/file_selection.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/onionshare_gui/tab/mode/file_selection.py b/onionshare_gui/tab/mode/file_selection.py
index 52163847..bcff07cb 100644
--- a/onionshare_gui/tab/mode/file_selection.py
+++ b/onionshare_gui/tab/mode/file_selection.py
@@ -65,7 +65,7 @@ class DropHereWidget(QtWidgets.QWidget):
self.hide()
def dragEnterEvent(self, event):
- self.text_label.hide()
+ self.hide()
event.accept()
def resize(self, w, h):
@@ -108,10 +108,9 @@ class FileList(QtWidgets.QListWidget):
def __init__(self, common, background_image_filename, header_text, parent=None):
super(FileList, self).__init__(parent)
-
self.common = common
-
self.setAcceptDrops(True)
+
self.setIconSize(QtCore.QSize(32, 32))
self.setSortingEnabled(True)
self.setMinimumHeight(160)
@@ -192,7 +191,7 @@ class FileList(QtWidgets.QListWidget):
size_hint = self.drop_count.sizeHint()
self.drop_count.setGeometry(
- self.width() - size_hint.width() - 10,
+ self.width() - size_hint.width() - 30,
self.height() - size_hint.height() - 10,
size_hint.width(),
size_hint.height(),