Skip to content

Commit

Permalink
Undo recent change to setting base directory
Browse files Browse the repository at this point in the history
  • Loading branch information
ejeschke committed Oct 9, 2024
1 parent 508ea40 commit 6952d5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
9 changes: 2 additions & 7 deletions ginga/rv/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,13 +387,8 @@ def main(self, options, args):
# custom basedir
paths.set_home(self.basedir)
else:
if self.appname == 'ginga':
# stock ginga basedir
self.basedir = paths.ginga_home
else:
# user changed appname
self.basedir = os.path.join(paths.home, f".{self.appname}")
paths.set_home(self.basedir)
# stock ginga basedir
self.basedir = paths.ginga_home

# Get settings (preferences)
if not os.path.exists(self.basedir):
Expand Down
5 changes: 0 additions & 5 deletions ginga/rv/plugins/Toolbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,11 +260,6 @@ def __init__(self, fv, chviewer):

self.layout = [
# (Name, type, icon, tooltip)
# ("Up", 'button', 'up', "Go to previous image in channel",
# lambda w: self.fv.prev_img()),
# ("Down", 'button', 'down', "Go to next image in channel",
# lambda w: self.fv.next_img()),
# ("---",),
("FlipX", 'toggle', 'flip_x', "Flip image in X axis",
self.flipx_cb),
("FlipY", 'toggle', 'flip_y', "Flip image in Y axis",
Expand Down

0 comments on commit 6952d5f

Please sign in to comment.