1
0
Fork 0
mirror of https://github.com/aclist/dztui.git synced 2024-12-29 13:52:03 +01:00

chore: focus in signals

This commit is contained in:
aclist 2024-01-13 06:50:34 +09:00
parent 00452cca5f
commit 406663cd7a
3 changed files with 17 additions and 16 deletions

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -o pipefail set -o pipefail
version=5.0.0.rc-6 version=5.0.0.rc-7
#CONSTANTS #CONSTANTS
aid=221100 aid=221100
@ -528,7 +528,7 @@ fetch_dzq(){
fetch_helpers_by_sum(){ fetch_helpers_by_sum(){
declare -A sums declare -A sums
sums=( sums=(
["ui.py"]="a6d80a2cfff27e7c02e16499a0983f8e" ["ui.py"]="a4adb00c54d71ad9268cf3cbf8df0a1e"
["query_v2.py"]="1822bd1769ce7d7cb0d686a60f9fa197" ["query_v2.py"]="1822bd1769ce7d7cb0d686a60f9fa197"
["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397" ["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397"
["funcs"]="d9b0e6fa68314c18ac7aad565645948f" ["funcs"]="d9b0e6fa68314c18ac7aad565645948f"
@ -790,7 +790,7 @@ initial_setup(){
steam_deps steam_deps
migrate_files migrate_files
stale_symlinks stale_symlinks
fetch_helpers > >(pdialog "Fetching additional helper files") # fetch_helpers > >(pdialog "Fetching additional helper files")
local_latlon local_latlon
is_steam_running is_steam_running
is_dzg_downloading is_dzg_downloading

View file

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -o pipefail set -o pipefail
version="5.0.0.rc-2" version="5.0.0.rc-7"
#CONSTANTS #CONSTANTS
aid=221100 aid=221100

View file

@ -15,7 +15,7 @@ locale.setlocale(locale.LC_ALL, '')
gi.require_version("Gtk", "3.0") gi.require_version("Gtk", "3.0")
from gi.repository import Gtk, GLib, Gdk, GObject, Pango from gi.repository import Gtk, GLib, Gdk, GObject, Pango
# 5.0.0-rc.1 # 5.0.0-rc.7
app_name = "DZGUI" app_name = "DZGUI"
cache = {} cache = {}
@ -434,7 +434,7 @@ def reinit_checks():
class OuterWindow(Gtk.Window): class OuterWindow(Gtk.Window):
def __init__(self): def __init__(self, is_steam_deck):
super().__init__() super().__init__()
self.connect("destroy", self.halt_proc_and_quit) self.connect("destroy", self.halt_proc_and_quit)
@ -447,7 +447,7 @@ class OuterWindow(Gtk.Window):
app > win > grid > scrollable > treeview [row/server/mod store] app > win > grid > scrollable > treeview [row/server/mod store]
app > win > grid > vbox > buttonbox > filterpanel > combo [map store] app > win > grid > vbox > buttonbox > filterpanel > combo [map store]
""" """
self.grid = Grid() self.grid = Grid(is_steam_deck)
self.add(self.grid) self.add(self.grid)
self.hb = AppHeaderBar() self.hb = AppHeaderBar()
self.set_titlebar(self.hb) self.set_titlebar(self.hb)
@ -1391,7 +1391,7 @@ class EntryDialog(GenericDialog):
class Grid(Gtk.Grid): class Grid(Gtk.Grid):
def __init__(self): def __init__(self, is_steam_deck):
super().__init__() super().__init__()
Gtk.Grid() Gtk.Grid()
self.set_column_homogeneous(True) self.set_column_homogeneous(True)
@ -1399,12 +1399,6 @@ class Grid(Gtk.Grid):
_news = sys.argv[2] _news = sys.argv[2]
self._version = "%s %s" %(app_name, sys.argv[3]) self._version = "%s %s" %(app_name, sys.argv[3])
_isd = int(sys.argv[4])
if _isd == 1:
is_steam_deck = True
else:
is_steam_deck = False
if _news != "null": if _news != "null":
self.news = NewsHeader(_news) self.news = NewsHeader(_news)
@ -1484,8 +1478,15 @@ def toggle_signal(owner, widget, func_name, bool):
class App(Gtk.Application): class App(Gtk.Application):
def __init__(self): def __init__(self):
self.win = OuterWindow() _isd = sys.argv[4]
if _isd == 1:
is_steam_deck = True
else:
is_steam_deck = False
self.win = OuterWindow(is_steam_deck)
if is_steam_deck == 1:
self.win.fullscreen() self.win.fullscreen()
accel = Gtk.AccelGroup() accel = Gtk.AccelGroup()