mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-06 08:25:15 -04:00
Move the 'supports_file_requests' attribute into the actual modes rather than the Web class
This commit is contained in:
parent
9aedb0cc00
commit
aa7a6e321b
4 changed files with 20 additions and 7 deletions
|
@ -39,6 +39,12 @@ class ChatModeWeb:
|
|||
# This tracks the history id
|
||||
self.cur_history_id = 0
|
||||
|
||||
# Whether or not we can send REQUEST_INDIVIDUAL_FILE_STARTED
|
||||
# and maybe other events when requests come in to this mode
|
||||
# Chat mode has no concept of individual file requests that
|
||||
# turn into history widgets in the GUI, so set it to False
|
||||
self.supports_file_requests = False
|
||||
|
||||
self.define_routes()
|
||||
|
||||
def define_routes(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue