mirror of
https://github.com/aclist/dztui.git
synced 2025-01-01 15:12:05 +01:00
fix: set titlebar correctly
This commit is contained in:
parent
9b84a168b8
commit
62613d9533
3 changed files with 14 additions and 13 deletions
8
dzgui.sh
8
dzgui.sh
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
version=5.0.0.rc-33
|
version=5.0.0.rc-34
|
||||||
|
|
||||||
#CONSTANTS
|
#CONSTANTS
|
||||||
aid=221100
|
aid=221100
|
||||||
|
@ -536,10 +536,10 @@ fetch_dzq(){
|
||||||
fetch_helpers_by_sum(){
|
fetch_helpers_by_sum(){
|
||||||
declare -A sums
|
declare -A sums
|
||||||
sums=(
|
sums=(
|
||||||
["ui.py"]="24c16220d76b5fb8c6964648d509d684"
|
["ui.py"]="b4e3ffaede349a6817132a5a7df45bf8"
|
||||||
["query_v2.py"]="1822bd1769ce7d7cb0d686a60f9fa197"
|
["query_v2.py"]="1822bd1769ce7d7cb0d686a60f9fa197"
|
||||||
["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397"
|
["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397"
|
||||||
["funcs"]="91144c992c4786c855da659f384caebd"
|
["funcs"]="0ad23d86fe24507c177e9db95c917354"
|
||||||
)
|
)
|
||||||
local author="aclist"
|
local author="aclist"
|
||||||
local repo="dztui"
|
local repo="dztui"
|
||||||
|
@ -812,7 +812,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 "Checking helper files")
|
||||||
local_latlon
|
local_latlon
|
||||||
is_steam_running
|
is_steam_running
|
||||||
is_dzg_downloading
|
is_dzg_downloading
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
version=5.0.0.rc-33
|
version=5.0.0.rc-34
|
||||||
|
|
||||||
#CONSTANTS
|
#CONSTANTS
|
||||||
aid=221100
|
aid=221100
|
||||||
|
|
|
@ -16,7 +16,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.33
|
# 5.0.0-rc.34
|
||||||
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, is_steam_deck):
|
def __init__(self, is_steam_deck):
|
||||||
super().__init__()
|
super().__init__(title=app_name)
|
||||||
|
|
||||||
self.connect("delete-event", self.halt_proc_and_quit)
|
self.connect("delete-event", self.halt_proc_and_quit)
|
||||||
# Deprecated in GTK 4.0
|
# Deprecated in GTK 4.0
|
||||||
|
@ -447,13 +447,14 @@ class OuterWindow(Gtk.Window):
|
||||||
"""
|
"""
|
||||||
self.grid = Grid(is_steam_deck)
|
self.grid = Grid(is_steam_deck)
|
||||||
self.add(self.grid)
|
self.add(self.grid)
|
||||||
self.hb = AppHeaderBar()
|
# self.hb = AppHeaderBar()
|
||||||
|
|
||||||
if is_steam_deck is True:
|
# if is_steam_deck is True:
|
||||||
self.maximize()
|
# self.maximize()
|
||||||
self.set_decorated(False)
|
# self.set_decorated(False)
|
||||||
else:
|
# else:
|
||||||
self.set_titlebar(self.hb)
|
# pass
|
||||||
|
# self.set_titlebar(self.hb)
|
||||||
|
|
||||||
# Hide FilterPanel on main menu
|
# Hide FilterPanel on main menu
|
||||||
self.show_all()
|
self.show_all()
|
||||||
|
|
Loading…
Reference in a new issue