Skip to content

Commit

Permalink
Clean up shared
Browse files Browse the repository at this point in the history
  • Loading branch information
kra-mo committed Dec 27, 2023
1 parent 3bc8864 commit 355ad8e
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions hyperplane/shared.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -33,26 +33,25 @@ PROFILE = "@PROFILE@"
schema = Gio.Settings.new(APP_ID)
state_schema = Gio.Settings.new(APP_ID + ".State")

home_path = Path(GLib.get_user_data_dir(), "hyperplane", "home")
home = Gio.File.new_for_path(str(home_path))
app = None # pylint: disable=invalid-name
search = "" # pylint: disable=invalid-name
right_clicked_file = None # pylint: disable=invalid-name
undo_queue = {}

grid_view = state_schema.get_boolean("grid-view")
show_hidden = state_schema.get_boolean("show-hidden")

tags = []
home_path = Path(GLib.get_user_data_dir(), "hyperplane", "home")
home = Gio.File.new_for_path(str(home_path))

tags = []
if (path := home_path / ".hyperplane").is_file():
tags = list(
tag for tag in path.read_text(encoding="utf-8").strip().split("\n") if tag
)

del path

app = None # pylint: disable=invalid-name
search = "" # pylint: disable=invalid-name
right_clicked_file = None # pylint: disable=invalid-name
grid_view = state_schema.get_boolean("grid-view")
undo_queue = {}

postmaster = HypPostmasterGeneral()

closed_folder_texture = texture = Gdk.Texture.new_from_resource(
Expand Down

0 comments on commit 355ad8e

Please sign in to comment.