Skip to content

Commit bf4853d

Browse files
fxlianglotem
authored andcommitted
fix(WeaselDeployer): WeaselDeployer will dump if hotkeys is set empty #1549
1 parent c2beb41 commit bf4853d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

WeaselDeployer/SwitcherSettingsDialog.cpp

+5-2
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,11 @@ void SwitcherSettingsDialog::Populate() {
5252
++k;
5353
}
5454
}
55-
std::wstring txt = u8tow(api_->get_hotkeys(settings_));
56-
hotkeys_.SetWindowTextW(txt.c_str());
55+
auto hotkeys_str = api_->get_hotkeys(settings_);
56+
if (hotkeys_str) {
57+
std::wstring txt = u8tow(hotkeys_str);
58+
hotkeys_.SetWindowTextW(txt.c_str());
59+
}
5760
loaded_ = true;
5861
modified_ = false;
5962
}

0 commit comments

Comments
 (0)