bugfixes:

- Installer: Force conda-forge for git on linux
  - GUI project: Fix issue with autosaving current settings
This commit is contained in:
torzdf
2026-05-01 10:34:52 +01:00
parent f7aa56a037
commit 4b2a3cdc89
2 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -431,7 +431,7 @@ install_git() {
info "Installing Git..."
# TODO On linux version 2.45.2 makes the font fixed TK pull in Python from
# graalpy, which breaks pretty much everything
yellow ; conda install "git<2.45" -q -y
yellow ; conda install -c conda-forge "git<2.45" -q -y
}
delete_faceswap() {
+2 -3
View File
@@ -1027,7 +1027,7 @@ class LastSession(_GuiSession):
self._options = options
self._set_options()
def to_dict(self) -> dict[str, str | dict[str, bool | int | float | str]] | None:
def to_dict(self) -> dict[str, str | dict[str, bool | int | float | str] | None] | None:
"""Collect the current GUI options and place them in a dict for retrieval or storage.
This function is required for reloading the GUI state when the GUI has been force
@@ -1037,7 +1037,7 @@ class LastSession(_GuiSession):
-------
The current cli options ready for saving or retrieval by :func:`from_dict`
"""
opts = T.cast(dict[str, str | dict[str, bool | int | float | str]],
opts = T.cast(dict[str, str | dict[str, bool | int | float | str] | None],
self._current_gui_state())
logger.debug("Collected opts: %s", opts)
if not opts or opts == self._default_options:
@@ -1045,7 +1045,6 @@ class LastSession(_GuiSession):
return None
opts["tab_name"] = self._active_tab
fname = self._config.project.filename
assert fname is not None
opts["project"] = fname
logger.debug("Added project items: %s", {k: v for k, v in opts.items()
if k in ("tab_name", "project")})