mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-09 18:44:46 +00:00
Improve "Load" button label in PalettePopup to know what it does when there is no active document
This commit is contained in:
parent
2c0642d1f1
commit
5ba85c01dc
@ -6,7 +6,7 @@
|
|||||||
<view id="view" expansive="true" />
|
<view id="view" expansive="true" />
|
||||||
<hbox>
|
<hbox>
|
||||||
<hbox expansive="true" />
|
<hbox expansive="true" />
|
||||||
<button id="load" text="Load" width="60" />
|
<button id="load" text="Load" width="80" />
|
||||||
<button id="openfolder" text="Open Folder" width="60" />
|
<button id="openfolder" text="Open Folder" width="60" />
|
||||||
</hbox>
|
</hbox>
|
||||||
</vbox>
|
</vbox>
|
||||||
|
@ -62,6 +62,11 @@ void PalettePopup::showPopup(gfx::Rect& bounds)
|
|||||||
m_load->setEnabled(false);
|
m_load->setEnabled(false);
|
||||||
m_paletteListBox.selectChild(NULL);
|
m_paletteListBox.selectChild(NULL);
|
||||||
|
|
||||||
|
if (!UIContext::instance()->getActiveDocument())
|
||||||
|
m_load->setText("Set as Default");
|
||||||
|
else
|
||||||
|
m_load->setText("Load");
|
||||||
|
|
||||||
moveWindow(bounds);
|
moveWindow(bounds);
|
||||||
openWindow();
|
openWindow();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user