Remove unnecessary str().
This commit is contained in:
parent
7fcbbc98f6
commit
ae3497a3a1
@ -173,7 +173,7 @@ class TabbedBrowser(tabwidget.TabWidget):
|
||||
else:
|
||||
scroll_pos = '{:2}%'.format(y)
|
||||
|
||||
fields['scroll_pos'] = str(scroll_pos)
|
||||
fields['scroll_pos'] = scroll_pos
|
||||
fmt = config.get('ui', 'window-title-format')
|
||||
self.window().setWindowTitle(fmt.format(**fields))
|
||||
|
||||
|
@ -120,7 +120,7 @@ class TabWidget(QTabWidget):
|
||||
else:
|
||||
scroll_pos = '{:2}%'.format(y)
|
||||
|
||||
fields['scroll_pos'] = str(scroll_pos)
|
||||
fields['scroll_pos'] = scroll_pos
|
||||
|
||||
fmt = config.get('tabs', 'title-format')
|
||||
self.tabBar().setTabText(idx, fmt.format(**fields))
|
||||
|
Loading…
Reference in New Issue
Block a user