mirror of
https://github.com/aclist/dztui.git
synced 2026-08-26 01:37:18 +02:00
fix: apply float format func to correct column
This commit is contained in:
parent
c0708b9358
commit
b2cec8cbdf
@ -38,7 +38,7 @@ class ModTreeView(ModsMixin, ContextMixin, TreeView): # type: ignore
|
||||
renderer = Gtk.CellRendererText()
|
||||
column = Gtk.TreeViewColumn(column_title, renderer, text=i)
|
||||
column.set_cell_data_func(renderer, self._format_color, func_data=None)
|
||||
if i == 4:
|
||||
if i == 3:
|
||||
column.set_cell_data_func(renderer, self._format_float, func_data=None)
|
||||
|
||||
if column_title == "Mod":
|
||||
@ -74,7 +74,9 @@ class ModTreeView(ModsMixin, ContextMixin, TreeView): # type: ignore
|
||||
mod = model.get(tree_iter, 2)[0]
|
||||
return str(mod)
|
||||
|
||||
def _parent_selection_changed(self, base_class: TreeView, sel: Gtk.TreeSelection) -> None:
|
||||
def _parent_selection_changed(
|
||||
self, base_class: TreeView, sel: Gtk.TreeSelection
|
||||
) -> None:
|
||||
pass
|
||||
|
||||
def _format_color(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user