mirror of
https://github.com/Thracky/GlosSI.git
synced 2024-11-19 03:25:29 +00:00
don't allow shortcuts to be added to steam if there aren't any
This commit is contained in:
parent
7947d6faac
commit
c7e0d37b48
@ -175,6 +175,13 @@ void GloSC::on_pbDelete_clicked()
|
|||||||
|
|
||||||
void GloSC::on_pbAddToSteam_clicked()
|
void GloSC::on_pbAddToSteam_clicked()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if (ui.lwInstances->count() <= 0)
|
||||||
|
{
|
||||||
|
QMessageBox::information(this, "GloSC", "No shortcuts! Create some shortcuts first for them to be added to Steam!", QMessageBox::Ok);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
QSettings settings("HKEY_CURRENT_USER\\SOFTWARE\\Valve\\Steam", QSettings::NativeFormat);
|
QSettings settings("HKEY_CURRENT_USER\\SOFTWARE\\Valve\\Steam", QSettings::NativeFormat);
|
||||||
QString steamPath = settings.value("SteamPath").toString();
|
QString steamPath = settings.value("SteamPath").toString();
|
||||||
QString activeUser = settings.value("ActiveProcess/ActiveUser").toString();
|
QString activeUser = settings.value("ActiveProcess/ActiveUser").toString();
|
||||||
|
Loading…
Reference in New Issue
Block a user