mirror of
https://github.com/aclist/dztui.git
synced 2026-08-28 18:57:12 +02:00
chore: boilerplate
This commit is contained in:
parent
796e4c5de6
commit
cacfab35bf
@ -7,6 +7,7 @@ from dzgui.config.convert import rc2json
|
||||
from dzgui.util._json import read_json, write_json
|
||||
|
||||
|
||||
# TODO: move to setup wizard
|
||||
def migrate_legacy_conf(config: Path) -> None:
|
||||
old_conf = Path.home() / LEGACY_CONFIG_PATH
|
||||
if old_conf.is_file():
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
import logging
|
||||
import os
|
||||
import shutil
|
||||
import time
|
||||
|
||||
@ -279,7 +278,7 @@ class ConnectionManager:
|
||||
time.sleep(2)
|
||||
|
||||
if raise_window is True:
|
||||
logger.info(f"Bringing window to foreground")
|
||||
logger.info("Bringing window to foreground")
|
||||
GLib.idle_add(self.controller.present_window)
|
||||
|
||||
for title, mod, stamp, size in self.missing_mods:
|
||||
|
||||
@ -16,7 +16,6 @@ if TYPE_CHECKING:
|
||||
from queue import Queue
|
||||
from dzgui.const.enum import ServerTab
|
||||
from dzgui.controllers.mc import Controller
|
||||
from dzgui.util.ip import Coords
|
||||
|
||||
logger = logging.getLogger(APP_NAME)
|
||||
|
||||
|
||||
@ -291,12 +291,14 @@ class PreConnectionAssistant(Gtk.ScrolledWindow):
|
||||
name = prereqs.name
|
||||
self.title.set_text(name)
|
||||
|
||||
suffix = "All mods are up to date."
|
||||
# FIXME: append to tree status bar
|
||||
|
||||
if total_mods < 1:
|
||||
self._hide_mod_area()
|
||||
else:
|
||||
self._show_mod_area()
|
||||
msg = "All mods are up to date."
|
||||
self.mod_count.set_text(msg)
|
||||
|
||||
if prereqs.required_space == 0:
|
||||
self.ok.set_label(preconnect.connect)
|
||||
|
||||
@ -91,7 +91,6 @@ class LogTreeView(ContextMixin, TreeView): # type: ignore
|
||||
return None
|
||||
for record in records:
|
||||
raw_record = model[record]
|
||||
#r = [el for el in raw_record]
|
||||
els = tuple(raw_record)
|
||||
concat = strings.delimiter.join(map(str, els))
|
||||
final.append(concat)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user