mirror of
https://github.com/aseprite/aseprite.git
synced 2024-09-02 04:59:24 +00:00
Easier way to reference the program website in commands
This commit is contained in:
parent
e624b391c2
commit
fa204baf42
10
data/gui.xml
10
data/gui.xml
@ -390,20 +390,20 @@
|
||||
<separator />
|
||||
<item command="Launch" text="Quick &Reference">
|
||||
<param name="type" value="url" />
|
||||
<param name="path" value="http://aseprite.org/quickref/" />
|
||||
<param name="path" value="/quickref/" />
|
||||
</item>
|
||||
<item command="Launch" text="Documentation">
|
||||
<param name="type" value="url" />
|
||||
<param name="path" value="http://aseprite.org/docs/" />
|
||||
<param name="path" value="/docs/" />
|
||||
</item>
|
||||
<item command="Launch" text="Tutorial">
|
||||
<param name="type" value="url" />
|
||||
<param name="path" value="http://aseprite.org/tutorial/" />
|
||||
<param name="path" value="/tutorial/" />
|
||||
</item>
|
||||
<separator />
|
||||
<item command="Launch" text="Release Notes">
|
||||
<param name="type" value="url" />
|
||||
<param name="path" value="http://aseprite.org/release-notes/" />
|
||||
<param name="path" value="/release-notes/" />
|
||||
</item>
|
||||
<item command="Launch" text="Twitter">
|
||||
<param name="type" value="url" />
|
||||
@ -412,7 +412,7 @@
|
||||
<separator />
|
||||
<item command="Launch" text="&Donate">
|
||||
<param name="type" value="url" />
|
||||
<param name="path" value="http://aseprite.org/donate/" />
|
||||
<param name="path" value="/donate/" />
|
||||
</item>
|
||||
<item command="About" text="&About" />
|
||||
</menu>
|
||||
|
@ -63,6 +63,10 @@ void LaunchCommand::onLoadParams(Params* params)
|
||||
m_type = Url;
|
||||
|
||||
m_path = params->get("path");
|
||||
|
||||
if (m_type == Url && !m_path.empty() && m_path[0] == '/') {
|
||||
m_path = WEBSITE + m_path.substr(1);
|
||||
}
|
||||
}
|
||||
|
||||
void LaunchCommand::onExecute(Context* context)
|
||||
|
@ -34,7 +34,7 @@
|
||||
// General information
|
||||
#define PACKAGE "Aseprite"
|
||||
#define VERSION "1.0.0-dev"
|
||||
#define WEBSITE "http://aseprite.org/"
|
||||
#define WEBSITE "http://www.aseprite.org/"
|
||||
#define WEBSITE_DOWNLOAD WEBSITE "download/"
|
||||
#define WEBSITE_CONTRIBUTORS WEBSITE "contributors/"
|
||||
#define COPYRIGHT "Copyright (C) 2001-2014 David Capello"
|
||||
|
Loading…
Reference in New Issue
Block a user