Skip to content

Commit fdeafcd

Browse files
committed
CtInfo: Don't show Mark Global button for Global Tool
1 parent 01a1d2f commit fdeafcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pupgui2/pupgui2ctinfodialog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def __init__(self, parent=None, ctool: BasicCompatTool = None, install_loc=None)
2929
self.games = []
3030
self.install_loc = install_loc
3131
self.is_batch_update_available = False
32-
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
32+
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
3333

3434
self.load_ui()
3535
self.setup_ui()

0 commit comments

Comments
 (0)