Merge branch 'fix_spelling_grammar_receiver_mode' of https://github.com/mig5/onionshare into mig5-fix_spelling_grammar_receiver_mode

This commit is contained in:
Micah Lee 2018-09-02 22:59:06 -07:00
commit eb0419f2d9
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73
3 changed files with 5 additions and 5 deletions

View File

@ -322,7 +322,7 @@ class Common(object):
font-size: 11px;
}""",
# Recieve mode and child widget styles
# Receive mode and child widget styles
'receive_file': """
QWidget {
background-color: #ffffff;

View File

@ -167,7 +167,7 @@ class OnionShareGui(QtWidgets.QMainWindow):
self.setCentralWidget(central_widget)
self.show()
# The servers isn't active yet
# The server isn't active yet
self.set_server_active(False)
# Create the timer

View File

@ -38,11 +38,11 @@ DEFAULT_ZW_FILENAME_REGEX = re.compile(r'^onionshare_[a-z2-7]{6}.zip$')
RANDOM_STR_REGEX = re.compile(r'^[a-z2-7]+$')
def web_obj(common_obj, recieve_mode, num_files=0):
def web_obj(common_obj, receive_mode, num_files=0):
""" Creates a Web object, in either share mode or receive mode, ready for testing """
common_obj.load_settings()
web = Web(common_obj, False, recieve_mode)
web = Web(common_obj, False, receive_mode)
web.generate_slug()
web.stay_open = True
web.running = True
@ -50,7 +50,7 @@ def web_obj(common_obj, recieve_mode, num_files=0):
web.app.testing = True
# Share mode
if not recieve_mode:
if not receive_mode:
# Add files
files = []
for i in range(num_files):