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

fix: set titlebar correctly

This commit is contained in:
aclist 2024-01-26 18:24:06 +09:00
parent 9b84a168b8
commit 62613d9533
3 changed files with 14 additions and 13 deletions

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -o pipefail
version=5.0.0.rc-33
version=5.0.0.rc-34
#CONSTANTS
aid=221100
@ -536,10 +536,10 @@ fetch_dzq(){
fetch_helpers_by_sum(){
declare -A sums
sums=(
["ui.py"]="24c16220d76b5fb8c6964648d509d684"
["ui.py"]="b4e3ffaede349a6817132a5a7df45bf8"
["query_v2.py"]="1822bd1769ce7d7cb0d686a60f9fa197"
["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397"
["funcs"]="91144c992c4786c855da659f384caebd"
["funcs"]="0ad23d86fe24507c177e9db95c917354"
)
local author="aclist"
local repo="dztui"
@ -812,7 +812,7 @@ initial_setup(){
steam_deps
migrate_files
stale_symlinks
fetch_helpers > >(pdialog "Fetching additional helper files")
fetch_helpers > >(pdialog "Checking helper files")
local_latlon
is_steam_running
is_dzg_downloading

View file

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

View file

@ -16,7 +16,7 @@ locale.setlocale(locale.LC_ALL, '')
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk, GLib, Gdk, GObject, Pango
# 5.0.0-rc.33
# 5.0.0-rc.34
app_name = "DZGUI"
cache = {}
@ -434,7 +434,7 @@ def reinit_checks():
class OuterWindow(Gtk.Window):
def __init__(self, is_steam_deck):
super().__init__()
super().__init__(title=app_name)
self.connect("delete-event", self.halt_proc_and_quit)
# Deprecated in GTK 4.0
@ -447,13 +447,14 @@ class OuterWindow(Gtk.Window):
"""
self.grid = Grid(is_steam_deck)
self.add(self.grid)
self.hb = AppHeaderBar()
# self.hb = AppHeaderBar()
if is_steam_deck is True:
self.maximize()
self.set_decorated(False)
else:
self.set_titlebar(self.hb)
# if is_steam_deck is True:
# self.maximize()
# self.set_decorated(False)
# else:
# pass
# self.set_titlebar(self.hb)
# Hide FilterPanel on main menu
self.show_all()