Fix typos in comments

This commit is contained in:
Micah Lee 2019-11-28 19:30:48 -08:00
parent b473744d26
commit 5cd2fc8ff7
5 changed files with 4 additions and 8 deletions

View File

@ -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

View File

@ -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):

View File

@ -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}")

View File

@ -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 <http://www.gnu.org/licenses/>.
"""
from PyQt5 import QtCore, QtWidgets, QtGui
from PyQt5 import QtCore, QtWidgets
from onionshare import strings

View File

@ -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