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