flags for setting files and dirs aren't ignored anymore when opening the shortcut dialog directly
@@ -20,11 +20,6 @@ func main() {
setConfigFilePath := flag.String("config-file", "", "Sets exact path of the configuration file")
flag.Parse()
- if showShortcutsDialog != nil && *showShortcutsDialog {
- shortcutdialog.RunShortcutsDialogStandalone()
- } else if showVersion != nil && *showVersion {
- fmt.Printf("You are running cordless version %s\nKeep in mind that this version might not be correct for manually built versions, as those can contain additional commits.\n", version.Version)
- } else {
if setConfigDirectory != nil {
config.SetConfigDirectory(*setConfigDirectory)
}
@@ -34,6 +29,12 @@ func main() {
if setConfigFilePath != nil {
config.SetConfigFile(*setConfigFilePath)
}
+
+ if showShortcutsDialog != nil && *showShortcutsDialog {
+ shortcutdialog.RunShortcutsDialogStandalone()
+ } else if showVersion != nil && *showVersion {
+ fmt.Printf("You are running cordless version %s\nKeep in mind that this version might not be correct for manually built versions, as those can contain additional commits.\n", version.Version)
+ } else {
app.Run()
}
}
