mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-17 13:56:47 +00:00
Made additional formatting for input controls optional and on by default for popups so it doesn't show up in preferences but still works when setting torrent options
This commit is contained in:
parent
05758245a1
commit
04ed96d121
@ -807,17 +807,6 @@ class InputPopup(Popup):
|
||||
self.parent.add_string(row, string, scr, col, pad, trim)
|
||||
return True
|
||||
|
||||
def getmaxyx(self):
|
||||
return self.screen.getmaxyx()
|
||||
|
||||
def add_string(self, row, string, scr=None, col = 0, pad=True, trim=True):
|
||||
if row <= 0:
|
||||
return False
|
||||
elif row >= self.height -1:
|
||||
return False
|
||||
self.parent.add_string(row, string, scr, col, pad, trim)
|
||||
return True
|
||||
|
||||
def add_spaces(self, num):
|
||||
for i in range(num):
|
||||
self.lines.append((len(self.inputs), ""))
|
||||
|
Loading…
x
Reference in New Issue
Block a user