summaryrefslogtreecommitdiff
path: root/desktop/src/onionshare/tab/mode/share_mode/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/src/onionshare/tab/mode/share_mode/__init__.py')
-rw-r--r--desktop/src/onionshare/tab/mode/share_mode/__init__.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/desktop/src/onionshare/tab/mode/share_mode/__init__.py b/desktop/src/onionshare/tab/mode/share_mode/__init__.py
index ccf85dbd..bf1498d5 100644
--- a/desktop/src/onionshare/tab/mode/share_mode/__init__.py
+++ b/desktop/src/onionshare/tab/mode/share_mode/__init__.py
@@ -173,6 +173,12 @@ class ShareMode(Mode):
# Always start with focus on file selection
self.file_selection.setFocus()
+ def get_type(self):
+ """
+ Returns the type of mode as a string (e.g. "share", "receive", etc.)
+ """
+ return "share"
+
def autostop_sharing_checkbox_clicked(self):
"""
Save autostop sharing setting to the tab settings