diff --git a/onionshare/__init__.py b/onionshare/__init__.py index dede3d8a..704f0a51 100644 --- a/onionshare/__init__.py +++ b/onionshare/__init__.py @@ -234,7 +234,7 @@ def main(cwd=None): # See what the persistent mode was mode = mode_settings.get("persistent", "mode") - # In share an website mode, you must supply a list of filenames + # In share and website mode, you must supply a list of filenames if mode == "share" or mode == "website": # Unless you passed in a persistent filename, in which case get the filenames from # the mode settings diff --git a/onionshare/mode_settings.py b/onionshare/mode_settings.py index 5082b7d7..6e875f0d 100644 --- a/onionshare/mode_settings.py +++ b/onionshare/mode_settings.py @@ -25,7 +25,7 @@ import json class ModeSettings: """ This stores the settings for a single instance of an OnionShare mode. In CLI there - is only one TabSettings, and in the GUI there is a separate TabSettings for each tab + is only one ModeSettings, and in the GUI there is a separate ModeSettings for each tab """ def __init__(self, common, filename=None, id=None): diff --git a/onionshare/web/web.py b/onionshare/web/web.py index bfdd2cac..8c4373fb 100644 --- a/onionshare/web/web.py +++ b/onionshare/web/web.py @@ -61,10 +61,6 @@ class Web: REQUEST_INVALID_PASSWORD = 14 def __init__(self, common, is_gui, mode_settings, mode="share"): - """ - tab_settings_get and tab_settings_set are getter and setter functions for tab settings - """ - self.common = common self.common.log("Web", "__init__", f"is_gui={is_gui}, mode={mode}") diff --git a/onionshare_gui/tab/mode/mode_settings_widget.py b/onionshare_gui/tab/mode/mode_settings_widget.py index 881f893c..a5e42d6d 100644 --- a/onionshare_gui/tab/mode/mode_settings_widget.py +++ b/onionshare_gui/tab/mode/mode_settings_widget.py @@ -17,7 +17,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . """ -from PyQt5 import QtCore, QtWidgets, QtGui +from PyQt5 import QtCore, QtWidgets from onionshare import strings diff --git a/onionshare_gui/tab_widget.py b/onionshare_gui/tab_widget.py index 3a8ef070..be744ace 100644 --- a/onionshare_gui/tab_widget.py +++ b/onionshare_gui/tab_widget.py @@ -85,7 +85,7 @@ class TabWidget(QtWidgets.QTabWidget): [self.tabBar().tabRect(i).width() for i in range(self.count())] ) - # The current positoin of the new tab button + # The current position of the new tab button pos = self.new_tab_button.pos() # If there are so many tabs it scrolls, move the button to the left of the scroll buttons