Skip to content

Commit 00e7a2f

Browse files
committed
Minor UI tweaks to preference dialog
1 parent ad84f92 commit 00e7a2f

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/ngscopeclient/PreferenceDialog.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ bool PreferenceDialog::DoRender()
181181
if(subCategory.IsVisible())
182182
{
183183
ImGui::PushID(identifier.c_str());
184-
if(DefaultButton("Default section",identifier))
184+
if(DefaultButton("Reset section",identifier))
185185
{
186186
OpenConfirmDialog("Reset to default","Reset all settings in this section to default?",identifier);
187187
}
@@ -197,7 +197,7 @@ bool PreferenceDialog::DoRender()
197197
}
198198

199199
ImGui::NewLine();
200-
if(DefaultButton("Default all Preferences","###resetAll",true))
200+
if(DefaultButton("Reset all Preferences","###resetAll",true))
201201
{
202202
OpenConfirmDialog("Reset to default","Reset all settings to default?","resetAll");
203203
}
@@ -234,7 +234,7 @@ void PreferenceDialog::ProcessCategory(PreferenceCategory& cat)
234234

235235
if(subCategory.IsVisible())
236236
{
237-
if(DefaultButton("Default category",identifier))
237+
if(DefaultButton("Reset category",identifier))
238238
{
239239
OpenConfirmDialog("Reset to default","Reset all settings in this category to default?",identifier);
240240
}
@@ -439,12 +439,12 @@ void PreferenceDialog::ProcessPreference(Preference& pref)
439439
}
440440

441441
HelpMarker(pref.GetDescription());
442-
label = "Default###" + pref.GetIdentifier() + "default";
443442
ImGui::SameLine();
444-
if(ImGui::Button(label.c_str()))
443+
if(DefaultButton("Reset", pref.GetIdentifier() + "default", false))
445444
{
446445
pref.ResetToDefault();
447446
// Clear cache
448447
m_preferenceTemporaries.erase(pref.GetIdentifier());
449448
}
449+
ImGui::NewLine();
450450
}

src/ngscopeclient/PreferenceManager.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/***********************************************************************************************************************
22
* *
3-
* glscopeclient *
3+
* ngscopeclient *
44
* *
5-
* Copyright (c) 2012-2022 Andrew D. Zonenberg *
5+
* Copyright (c) 2012-2026 Andrew D. Zonenberg *
66
* All rights reserved. *
77
* *
88
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the *

0 commit comments

Comments
 (0)