summaryrefslogtreecommitdiff
path: root/src/wx
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-03-03 23:22:31 +0100
committerCarl Hetherington <cth@carlh.net>2025-03-08 00:12:07 +0100
commit7d88bebfeb9931a39c6adc1e9dc9d6e1c0e3ea71 (patch)
tree7fb0716728ca91a30490b15fd8682c860f7d57e4 /src/wx
parenteef48c36012180d20001def874864607e15968b8 (diff)
Get gpu_lister path from config.
Diffstat (limited to 'src/wx')
-rw-r--r--src/wx/grok/gpu_config_panel.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/wx/grok/gpu_config_panel.h b/src/wx/grok/gpu_config_panel.h
index b61bccbde..34bf38f12 100644
--- a/src/wx/grok/gpu_config_panel.h
+++ b/src/wx/grok/gpu_config_panel.h
@@ -43,15 +43,9 @@ public:
void update()
{
- auto grok = Config::instance()->grok();
- auto lister_binary = grok.binary_location / "gpu_lister";
- if (boost::filesystem::exists(lister_binary)) {
- auto gpu_names = get_gpu_names(lister_binary);
-
- _combo_box->Clear();
- for (auto const& name: gpu_names) {
- _combo_box->Append(std_to_wx(name));
- }
+ _combo_box->Clear();
+ for (auto const& name: get_gpu_names()) {
+ _combo_box->Append(std_to_wx(name));
}
}