feat: casefold mod names before sorting

This commit is contained in:
aclist committed 2026-05-02 20:29:52 +09:00
1 parent 5757f79755
commit 8bcb64810d
5 files changed
+23 -17

No files matched your search

+2 -2
View File
@@ -2,7 +2,7 @@ import logging
import threading
from queue import Queue
from typing import Any, Optional, Self
from typing import Any, Optional, Self, Union
from warnings import deprecated
from dzgui.api.servers import ping, Record
@@ -321,7 +321,7 @@ class ServerTreeView(ContextMixin, TreeView):
def set_loaded(self, status: bool) -> None:
self.loaded = status
def get_model_and_control_model(self) -> tuple["FastInsertListStore", list[Any]]:
def get_model_and_control_model(self) -> tuple[Union["FastInsertListStore", None], list[Any]]:
model = self.get_model()
control = self.proxy_man.get_control()
return model, control