Skip to content

Commit

Permalink
CtInfo: Don't show Mark Global button for Global Tool
Browse files Browse the repository at this point in the history
  • Loading branch information
sonic2kk committed Dec 17, 2023
1 parent 01a1d2f commit fdeafcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pupgui2/pupgui2ctinfodialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def __init__(self, parent=None, ctool: BasicCompatTool = None, install_loc=None)
self.games = []
self.install_loc = install_loc
self.is_batch_update_available = False
self.is_mark_global_available = self.ctool.ct_type == CTType.CUSTOM and self.install_loc.get('launcher') == 'steam' and 'vdf_dir' in self.install_loc
self.is_mark_global_available = (self.ctool.ct_type == CTType.CUSTOM and not self.ctool.is_global) and self.install_loc.get('launcher') == 'steam' and 'vdf_dir' in self.install_loc

self.load_ui()
self.setup_ui()
Expand Down

0 comments on commit fdeafcd

Please sign in to comment.