From 2e1f8fca5ce4a5e28004e08c82c5185348371535 Mon Sep 17 00:00:00 2001 From: Miguel Jacq Date: Thu, 22 Feb 2018 14:44:00 +1100 Subject: [PATCH] Force a scrollbar on the file list widget. Not pretty but avoids weird text disappearance on resize when scrollbar otherwise activates --- onionshare_gui/file_selection.py | 1 + 1 file changed, 1 insertion(+) diff --git a/onionshare_gui/file_selection.py b/onionshare_gui/file_selection.py index 6d4d8b15..d39f9ac4 100644 --- a/onionshare_gui/file_selection.py +++ b/onionshare_gui/file_selection.py @@ -86,6 +86,7 @@ class FileList(QtWidgets.QListWidget): self.drop_here_text = DropHereLabel(self, False) self.drop_count = DropCountLabel(self) self.resizeEvent(None) + self.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn) self.setStyleSheet('QListWidget::item { color: #000000; font-size: 13px; }') def update(self):