Allow specifying window logos in the launch command

This commit is contained in:
Kovid Goyal
2021-12-04 12:35:27 +05:30
parent 3035ba08c3
commit 254ba401d4
5 changed files with 24 additions and 4 deletions

View File

@@ -1092,7 +1092,7 @@ class Window:
def set_logo(self, path: str, position: str = 'bottom-right', alpha: float = 0.5) -> None:
from .options.utils import config_or_absolute_path
path = config_or_absolute_path(path) or path
path = config_or_absolute_path(path, get_options().env) or path
set_window_logo(self.os_window_id, self.tab_id, self.id, path, position, alpha)
# actions {{{